This is the mail archive of the glibc-cvs@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]

GNU C Library master sources branch, master, updated. glibc-2.15-1152-g1214ec8


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  1214ec8f4c2e8fd105a6d9159b85cf31c0c6c386 (commit)
      from  3cc0cd4c5b3bed6f7d9aff26322d505785e11aa9 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=1214ec8f4c2e8fd105a6d9159b85cf31c0c6c386

commit 1214ec8f4c2e8fd105a6d9159b85cf31c0c6c386
Author: Mike Frysinger <vapier@gentoo.org>
Date:   Sun May 6 18:30:15 2012 -0400

    tst-getcpu: decode errno when sched_getcpu fails
    
    The tst-getcpu test is failing on ia64 platforms due to sched_getcpu
    returning an error.  But the current test only considers -1 when it's
    also ENOSYS.  Tweak the logic a bit to make the output clearer.
    
    Signed-off-by: Mike Frysinger <vapier@gentoo.org>

diff --git a/ChangeLog b/ChangeLog
index 56f7637..938c7aa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-06-04  Mike Frysinger  <vapier@gentoo.org>
+
+	* sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
+	cpu2 is -1 and errno is not ENOSYS.
+
 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
 
 	[BZ #14117]
diff --git a/sysdeps/unix/sysv/linux/tst-getcpu.c b/sysdeps/unix/sysv/linux/tst-getcpu.c
index bf3cb57..77baebc 100644
--- a/sysdeps/unix/sysv/linux/tst-getcpu.c
+++ b/sysdeps/unix/sysv/linux/tst-getcpu.c
@@ -31,10 +31,15 @@ do_test (void)
 	  else
 	    {
 	      int cpu2 = sched_getcpu ();
-	      if (cpu2 == -1 && errno == ENOSYS)
+	      if (cpu2 == -1)
 		{
-		  puts ("getcpu syscall not implemented");
-		  return 0;
+		  if (errno == ENOSYS)
+		    {
+		      puts ("getcpu syscall not implemented");
+		      return 0;
+		    }
+		  perror ("getcpu failed");
+		  result = 1;
 		}
 	      if (cpu2 != cpu)
 		{

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                            |    5 +++++
 sysdeps/unix/sysv/linux/tst-getcpu.c |   11 ++++++++---
 2 files changed, 13 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


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