From a334319f6530564d22e775935d9c91663623a1b4 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 22 Dec 2004 20:10:10 +0000 Subject: (CFLAGS-tst-align.c): Add -mpreferred-stack-boundary=4. --- rt/tst-aio3.c | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) (limited to 'rt/tst-aio3.c') diff --git a/rt/tst-aio3.c b/rt/tst-aio3.c index 95da4c1325..0c0ced4501 100644 --- a/rt/tst-aio3.c +++ b/rt/tst-aio3.c @@ -1,5 +1,5 @@ /* Test for notification mechanism in lio_listio. - Copyright (C) 2000, 2002, 2006 Free Software Foundation, Inc. + Copyright (C) 2000,02 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -24,18 +24,13 @@ #include #include -static pthread_barrier_t b; +int flag; static void thrfct (sigval_t arg) { - int e = pthread_barrier_wait (&b); - if (e != 0 && e != PTHREAD_BARRIER_SERIAL_THREAD) - { - puts ("child: barrier_wait failed"); - exit (1); - } + flag = 1; } @@ -57,12 +52,6 @@ do_test (int argc, char *argv[]) unlink (name); - if (pthread_barrier_init (&b, NULL, 2) != 0) - { - puts ("barrier_init failed"); - return 1; - } - arr[0] = &cb; cb.aio_fildes = fd; @@ -93,10 +82,9 @@ do_test (int argc, char *argv[]) return 1; } - int e = pthread_barrier_wait (&b); - if (e != 0 && e != PTHREAD_BARRIER_SERIAL_THREAD) + if (flag != 0) { - puts ("parent: barrier_wait failed"); + puts ("thread created, should not have happened"); return 1; } -- cgit 1.4.1