2003-03-23 Roland McGrath <roland@redhat.com>
authorRoland McGrath <roland@gnu.org>
Sun, 23 Mar 2003 09:59:34 +0000 (09:59 +0000)
committerRoland McGrath <roland@gnu.org>
Sun, 23 Mar 2003 09:59:34 +0000 (09:59 +0000)
* tst-mutex4.c: Use test-skeleton.c.
* tst-spin2.c: Likewise.
* tst-sysconf.c: Likewise.
* tst-barrier2.c: Likewise.
* tst-cond4.c: Likewise.
* tst-cond6.c: Likewise.
* tst-rwlock4.c: Likewise.
* tst-flock2.c (do_test): Use return instead of exit.

nptl/tst-sysconf.c

index b8ab7b0..3ad1b6a 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2002 Free Software Foundation, Inc.
+/* Copyright (C) 2002, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
 
@@ -22,8 +22,8 @@
 #include <unistd.h>
 
 
-int
-main (void)
+static int
+do_test (void)
 {
   puts ("We expect no limits");
   /* We have no fixed limit on the number of threads.  Make sure the
@@ -43,3 +43,6 @@ main (void)
 
   return 0;
 }
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"