diff options
Diffstat (limited to 'nptl/tst-basic2.c')
-rw-r--r-- | nptl/tst-basic2.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/nptl/tst-basic2.c b/nptl/tst-basic2.c index ffb19289b8..9bc20602d6 100644 --- a/nptl/tst-basic2.c +++ b/nptl/tst-basic2.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2002 Free Software Foundation, Inc. +/* Copyright (C) 2002, 2003 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@redhat.com>, 2002. @@ -58,6 +58,12 @@ do_test (void) exit (1); } + if (pthread_mutex_lock (&lock[i]) != 0) + { + puts ("mutex_lock failed"); + exit (1); + } + if (pthread_create (&th[i], NULL, tf, (void *) i) != 0) { puts ("create failed"); |