diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2014-08-28 12:31:30 +0200 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2014-08-28 13:15:55 +0200 |
commit | 512fd3804b963a6738ce59d25dd44a7d9143b8b7 (patch) | |
tree | 9b2f4677792ed6df33c6b5d7dcc8f1d7d6b8e711 /test/nptl/tst-sem4.c | |
parent | 697dbb016e4bc63d20a7c871a9580e7dce32d1b0 (diff) |
test: sync with glibc, use do_test
This breaks out of a deadlock, which occurs when testing for powerpc. (qemu)
Otherwise the test suite does not finish.
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'test/nptl/tst-sem4.c')
-rw-r--r-- | test/nptl/tst-sem4.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/nptl/tst-sem4.c b/test/nptl/tst-sem4.c index 125759bab..72ed97d37 100644 --- a/test/nptl/tst-sem4.c +++ b/test/nptl/tst-sem4.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2002 Free Software Foundation, Inc. +/* Copyright (C) 2002-2014 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@redhat.com>, 2002. @@ -32,7 +32,7 @@ remove_sem (int status, void *arg) int -main (void) +do_test (void) { sem_t *s; sem_t *s2; @@ -144,3 +144,6 @@ main (void) return 0; } + +#define TEST_FUNCTION do_test () +#include "../test-skeleton.c" |