+2015-03-04 Roland McGrath <roland@hack.frob.com>
+
+ * nptl/tst-cancel4.c (tf_sigpause) [!SIGCANCEL]: Call pause instead of
+ __xpg_sigpause.
+ * nptl/tst-signal3.c: Conditionalize body on [SIGRTMIN].
+ * nptl/tst-signal6.c: Likewise.
+ * rt/tst-mqueue5.c: Conditionalize body on [SIGRTMIN && SA_SIGINFO].
+ * rt/tst-timer4.c: Conditionalize body on [SA_SIGINFO].
+
2015-03-04 Roland McGrath <roland@hack.frob.com>
* configure.ac (libc_cv_cxx_link_ok): New check.
pthread_cleanup_push (cl, NULL);
+#ifdef SIGCANCEL
/* Just for fun block the cancellation signal. We need to use
__xpg_sigpause since otherwise we will get the BSD version. */
__xpg_sigpause (SIGCANCEL);
+#else
+ pause ();
+#endif
pthread_cleanup_pop (0);
#include <unistd.h>
-/* Number of different signalss to use. Also is the number of
- threads. */
-#define N 10
+#ifdef SIGRTMIN
+
+/* Number of different signals to use. Also is the number of threads. */
+# define N 10
/* Maximum number of threads in flight at any one time. */
-#define INFLIGHT 5
+# define INFLIGHT 5
/* Number of signals sent in total. */
-#define ROUNDS 10000
+# define ROUNDS 10000
static int received[N][N];
return result;
}
-#define TIMEOUT 10
-#define TEST_FUNCTION do_test ()
+# define TIMEOUT 10
+# define TEST_FUNCTION do_test ()
+
+#else
+# define TEST_FUNCTION 0
+#endif
+
#include "../test-skeleton.c"
#include <unistd.h>
-#define N 2
+#ifdef SIGRTMIN
+
+# define N 2
static pthread_barrier_t bar;
static struct
{
return 0;
}
-#define TEST_FUNCTION do_test ()
+# define TEST_FUNCTION do_test ()
+
+#else
+# define TEST_FUNCTION 0
+#endif
#include "../test-skeleton.c"
#define TIMEOUT 3
-#if _POSIX_THREADS
+#if _POSIX_THREADS && defined SIGRTMIN && defined SA_SIGINFO
# include <pthread.h>
volatile int rtmin_cnt;
#include <time.h>
#include <unistd.h>
#include <stdint.h>
-#if _POSIX_THREADS
+#if _POSIX_THREADS && defined SA_SIGINFO
# include <pthread.h>
# ifndef TEST_CLOCK
}
return result;
}
+
+#elif defined TEST_CLOCK_MISSING
+/* This just ensures that any functions called in TEST_CLOCK_MISSING
+ are not diagnosed as unused. */
+# define TEST_FUNCTION (TEST_CLOCK_MISSING (TEST_CLOCK), 0)
#else
# define TEST_FUNCTION 0
#endif