chiark / gitweb /
lib/ tests now use Automake's test infrastructure, and are split into
[disorder] / lib / t-wstat.c
index 0d87472416bb00784f4e52671fea296cba8e487c..a6746cda42831f43a8072092a8e6a87ad83b979d 100644 (file)
  */
 #include "test.h"
 
-void test_wstat(void) {
+static void test_wstat(void) {
   pid_t pid;
   int w;
   
-  fprintf(stderr, "test_wstat\n");
   if(!(pid = xfork())) {
     _exit(1);
   }
@@ -39,6 +38,8 @@ void test_wstat(void) {
   check_string_prefix(wstat(w), "terminated by signal 15");
 }
 
+TEST(wstat);
+
 /*
 Local Variables:
 c-basic-offset:2