From: Ulrich Drepper Date: Tue, 15 Jan 2008 20:15:10 +0000 (+0000) Subject: * tst-eintr2.c (do_test): make sure that if mutex_lock in main X-Git-Tag: cvs/fedora-glibc-20080131T0821~20 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=eaf95a2682f802f76e60dfa73be4fc4b9ce0f99c;p=thirdparty%2Fglibc.git * tst-eintr2.c (do_test): make sure that if mutex_lock in main thread returns the program exits with an error code. --- diff --git a/nptl/ChangeLog b/nptl/ChangeLog index 9c37906467b..7c88aa5a161 100644 --- a/nptl/ChangeLog +++ b/nptl/ChangeLog @@ -1,3 +1,8 @@ +2008-01-15 Ulrich Drepper + + * 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 * pthread-errnos.sym: Add EOVERFLOW. diff --git a/nptl/tst-eintr2.c b/nptl/tst-eintr2.c index 8cbbc5a0262..b7436a66ac2 100644 --- a/nptl/tst-eintr2.c +++ b/nptl/tst-eintr2.c @@ -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 , 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