summaryrefslogtreecommitdiff
path: root/test/nptl/tst-sem12.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/nptl/tst-sem12.c')
-rw-r--r--test/nptl/tst-sem12.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/nptl/tst-sem12.c b/test/nptl/tst-sem12.c
new file mode 100644
index 000000000..71d02b70e
--- /dev/null
+++ b/test/nptl/tst-sem12.c
@@ -0,0 +1,14 @@
+#include <time.h>
+#include <sys/time.h>
+
+
+#define PREPARE \
+ struct timespec ts; \
+ struct timeval tv; \
+ gettimeofday (&tv, NULL); \
+ TIMEVAL_TO_TIMESPEC (&tv, &ts); \
+ ts.tv_sec += 60;
+
+#define SEM_WAIT(s) sem_timedwait (s, &ts)
+
+#include "tst-sem11.c"