about summary refs log tree commit diff
path: root/nptl/tst-eintr2.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2008-01-15 20:15:10 +0000
committerUlrich Drepper <drepper@redhat.com>2008-01-15 20:15:10 +0000
commiteaf95a2682f802f76e60dfa73be4fc4b9ce0f99c (patch)
tree37ed4b83a102a7a65e79188334fe3cea3439bb0d /nptl/tst-eintr2.c
parentebca8f730eb78d3aaa0d245033556e0c9fb0ec35 (diff)
downloadglibc-eaf95a2682f802f76e60dfa73be4fc4b9ce0f99c.tar.gz
glibc-eaf95a2682f802f76e60dfa73be4fc4b9ce0f99c.tar.xz
glibc-eaf95a2682f802f76e60dfa73be4fc4b9ce0f99c.zip
* tst-eintr2.c (do_test): make sure that if mutex_lock in main
	thread returns the program exits with an error code.
Diffstat (limited to 'nptl/tst-eintr2.c')
-rw-r--r--nptl/tst-eintr2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nptl/tst-eintr2.c b/nptl/tst-eintr2.c
index 8cbbc5a026..b7436a66ac 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 <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