8 static void *worker (void *dummy
) __attribute__ ((__noreturn__
));
16 #define TEST_FUNCTION do_test ()
25 switch ((pid
= fork ()))
28 puts ("Could not fork");
31 if (pthread_create(&th
, NULL
, worker
, NULL
) != 0)
33 puts ("Failed to start thread");
42 if (waitpid (pid
, &status
, 0) != pid
)
44 puts ("waitpid failed");
48 if (!WIFEXITED (status
) || WEXITSTATUS (status
) != 26)
50 printf ("Wrong exit code %d\n", status
);
58 #include "../../test-skeleton.c"