From: Dirk Mueller Date: Mon, 5 May 2003 11:04:37 +0000 (+0000) Subject: fix regression test run failure. appears to be a glibc bug X-Git-Tag: svn/VALGRIND_2_0_0~167 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=77f71065e171e8b506d31b64fcef23bd3e0ab321;p=thirdparty%2Fvalgrind.git fix regression test run failure. appears to be a glibc bug git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1613 --- diff --git a/corecheck/tests/pth_atfork1.c b/corecheck/tests/pth_atfork1.c index f0876b8886..b9305808c8 100644 --- a/corecheck/tests/pth_atfork1.c +++ b/corecheck/tests/pth_atfork1.c @@ -37,21 +37,18 @@ static int var; static void prepare (void) { - printf("prepare\n"); var |= PREPARE_BIT; } static void parent (void) { - printf("parent\n"); var |= PARENT_BIT; } static void child (void) { - printf("child\n"); var |= CHILD_BIT; } @@ -72,7 +69,11 @@ main (void) pthread_join (th, &res); - return (int) (long int) res; + if ( ( int ) ( long int ) res != 0 ) + error(EXIT_FAILURE, 0, "pthread_join res != 0" ); + + printf ( "all ok\n" ); + return 0; } diff --git a/corecheck/tests/pth_atfork1.stdout.exp b/corecheck/tests/pth_atfork1.stdout.exp index 64eb4aea11..d48ce72996 100644 --- a/corecheck/tests/pth_atfork1.stdout.exp +++ b/corecheck/tests/pth_atfork1.stdout.exp @@ -1,3 +1 @@ -prepare -child -parent +all ok