This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[COMMITTED PATCH] Print more information in tst-getcpu failure case.
- From: Roland McGrath <roland at hack dot frob dot com>
- To: "GNU C. Library" <libc-alpha at sourceware dot org>
- Date: Wed, 24 Jun 2015 13:57:29 -0700 (PDT)
- Subject: [COMMITTED PATCH] Print more information in tst-getcpu failure case.
- Authentication-results: sourceware.org; auth=none
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;
}
}