[COMMITTED PATCH] Print more information in tst-getcpu failure case.
Roland McGrath
roland@hack.frob.com
Wed Jun 24 23:31:00 GMT 2015
2015-06-24 Roland McGrath <roland@hack.frob.com>
* sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): When sched_getcpu
return value is wrong, print the expected value too.
diff --git a/sysdeps/unix/sysv/linux/tst-getcpu.c b/sysdeps/unix/sysv/linux/tst-getcpu.c
index 77baebc..d9c05a7 100644
--- a/sysdeps/unix/sysv/linux/tst-getcpu.c
+++ b/sysdeps/unix/sysv/linux/tst-getcpu.c
@@ -43,7 +43,7 @@ do_test (void)
}
if (cpu2 != cpu)
{
- printf ("getcpu results %d not possible\n", cpu2);
+ printf ("getcpu results %d should be %d\n", cpu2, cpu);
result = 1;
}
}
More information about the Libc-alpha
mailing list