about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2015-06-24 13:56:46 -0700
committerRoland McGrath <roland@hack.frob.com>2015-06-24 13:56:46 -0700
commit010186901d16060a5d1178cc0f2f59199228b99a (patch)
tree0f522951685c2fb2a46c1a41044fea6891f5696d
parentbd0a60f9a74cc4d81eb42a5d1281ae3bd6fee047 (diff)
downloadglibc-010186901d16060a5d1178cc0f2f59199228b99a.tar.gz
glibc-010186901d16060a5d1178cc0f2f59199228b99a.tar.xz
glibc-010186901d16060a5d1178cc0f2f59199228b99a.zip
Print more information in tst-getcpu failure case.
-rw-r--r--ChangeLog5
-rw-r--r--sysdeps/unix/sysv/linux/tst-getcpu.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index bad1333b26..d1bd19ebb5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+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.
+
 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
 
 	[BZ #18585]
diff --git a/sysdeps/unix/sysv/linux/tst-getcpu.c b/sysdeps/unix/sysv/linux/tst-getcpu.c
index 77baebc0a8..d9c05a7ada 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;
 		}
 	    }