]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
* tst-eintr2.c (do_test): make sure that if mutex_lock in main
authorUlrich Drepper <drepper@redhat.com>
Tue, 15 Jan 2008 20:15:10 +0000 (20:15 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 15 Jan 2008 20:15:10 +0000 (20:15 +0000)
thread returns the program exits with an error code.

nptl/ChangeLog
nptl/tst-eintr2.c

index 9c37906467b4070e1c1f361b8c88c781c5e0bd6f..7c88aa5a1617583445b785e81b43f69070c1e165 100644 (file)
@@ -1,3 +1,8 @@
+2008-01-15  Ulrich Drepper  <drepper@redhat.com>
+
+       * tst-eintr2.c (do_test): make sure that if mutex_lock in main
+       thread returns the program exits with an error code.
+
 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
 
        * pthread-errnos.sym: Add EOVERFLOW.
index 8cbbc5a02624d36b41586a6ea210797a6bf10e8f..b7436a66ac241fbff9f86289a896dd71e552d5a7 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2003 Free Software Foundation, Inc.
+/* Copyright (C) 2003, 2008 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@redhat.com>, 2003.
 
@@ -109,7 +109,7 @@ do_test (void)
   printf ("main: mutex_lock returned: %s\n",
          strerror_r (e, buf, sizeof (buf)));
 
-  return 0;
+  return 1;
 }
 
 #define EXPECTED_SIGNAL SIGALRM