summary refs log tree commit diff
path: root/nptl/tst-cond6.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2003-03-23 10:01:48 +0000
committerRoland McGrath <roland@gnu.org>2003-03-23 10:01:48 +0000
commitb910f7887bdc3c07e460c8ee25ba552c6a2249a5 (patch)
tree06271b5c9ed70bf9c3dd2a08c551a2a54c1ed302 /nptl/tst-cond6.c
parent24eaaef61dffee283b6d32328f3e5126063d9d2a (diff)
downloadglibc-b910f7887bdc3c07e460c8ee25ba552c6a2249a5.tar.gz
glibc-b910f7887bdc3c07e460c8ee25ba552c6a2249a5.tar.xz
glibc-b910f7887bdc3c07e460c8ee25ba552c6a2249a5.zip
* tst-join5.c (tf1, tf2): Add a cast.
	* Makeconfig (includes): Append -I$(..)nptl to this variable.

	* tst-barrier2.c (do_test) [! _POSIX_THREAD_PROCESS_SHARED]:
	Don't test anything.
	* tst-cond4.c: Likewise.
	* tst-cond6.c: Likewise.
	* tst-flock2.c: Likewise.
	* tst-mutex4.c: Likewise.
	* tst-rwlock4.c: Likewise.
	* tst-signal1.c: Likewise.
	* tst-spin2.c: Likewise.
	* tst-cond11.c [! _POSIX_CLOCK_SELECTION]: Likewise.

	* 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-unload.c: Likewise.
	* tst-flock2.c (do_test): Use return instead of exit.
Diffstat (limited to 'nptl/tst-cond6.c')
-rw-r--r--nptl/tst-cond6.c18
1 files changed, 14 insertions, 4 deletions
diff --git a/nptl/tst-cond6.c b/nptl/tst-cond6.c
index 63c54705db..21821442ac 100644
--- a/nptl/tst-cond6.c
+++ b/nptl/tst-cond6.c
@@ -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.
 
@@ -31,10 +31,16 @@
 
 int *condition;
 
-
-int
-main (void)
+static int
+do_test (void)
 {
+#if ! _POSIX_THREAD_PROCESS_SHARED
+
+  puts ("_POSIX_THREAD_PROCESS_SHARED not supported, test skipped");
+  return 0;
+
+#else
+
   size_t ps = sysconf (_SC_PAGESIZE);
   char tmpfname[] = "/tmp/tst-cond6.XXXXXX";
   char data[ps];
@@ -230,4 +236,8 @@ main (void)
     }
 
  return result;
+#endif
 }
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"