14 #define TEST_FUNCTION do_test ()
23 switch ((pid
= fork ()))
26 puts ("Could not fork");
29 if (pthread_create(&th
, NULL
, worker
, NULL
) != 0)
31 puts ("Failed to start thread");
40 if (waitpid (pid
, &status
, 0) != pid
)
42 puts ("waitpid failed");
46 if (!WIFEXITED (status
) || WEXITSTATUS (status
) != 26)
48 printf ("Wrong exit code %d\n", status
);
56 #include "../../test-skeleton.c"