Print more information in tst-getcpu failure case.
authorRoland McGrath <roland@hack.frob.com>
Wed, 24 Jun 2015 20:56:46 +0000 (13:56 -0700)
committerRoland McGrath <roland@hack.frob.com>
Wed, 24 Jun 2015 20:56:46 +0000 (13:56 -0700)
ChangeLog
sysdeps/unix/sysv/linux/tst-getcpu.c

index bad1333..d1bd19e 100644 (file)
--- 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]
index 77baebc..d9c05a7 100644 (file)
@@ -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;
                }
            }