This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[COMMITTED PATCH] Print more information in tst-getcpu failure case.


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;
 		}
 	    }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]