summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests/POSIX
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2009-12-04 06:55:02 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2009-12-04 06:55:02 +0000
commit0cd38780080223c610c8ca1c9b2e7d905506baa5 (patch)
tree901424627af81a105d318df1a83bc4e1e980e181 /testsuites/libtests/POSIX
parent2009-12-04 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-0cd38780080223c610c8ca1c9b2e7d905506baa5.tar.bz2
2009-12-04 Ralf Corsépius <ralf.corsepius@rtems.org>
* POSIX/Makefile.am: Add wait. * POSIX/wait.c: New.
Diffstat (limited to 'testsuites/libtests/POSIX')
-rw-r--r--testsuites/libtests/POSIX/Makefile.am3
-rw-r--r--testsuites/libtests/POSIX/wait.c20
2 files changed, 23 insertions, 0 deletions
diff --git a/testsuites/libtests/POSIX/Makefile.am b/testsuites/libtests/POSIX/Makefile.am
index 2cef1020a1..c85a23bc67 100644
--- a/testsuites/libtests/POSIX/Makefile.am
+++ b/testsuites/libtests/POSIX/Makefile.am
@@ -94,6 +94,9 @@ unlink_SOURCES = unlink.c
check_PROGRAMS += vfork
vfork_SOURCES = vfork.c
+check_PROGRAMS += wait
+wait_SOURCES = wait.c
+
check_PROGRAMS += waitpid
waitpid_SOURCES = waitpid.c
diff --git a/testsuites/libtests/POSIX/wait.c b/testsuites/libtests/POSIX/wait.c
new file mode 100644
index 0000000000..89a6742fe9
--- /dev/null
+++ b/testsuites/libtests/POSIX/wait.c
@@ -0,0 +1,20 @@
+/*
+ * Copyright (c) 2009 by
+ * Ralf Corsépius, Ulm, Germany. All rights reserved.
+ *
+ * Permission to use, copy, modify, and distribute this software
+ * is freely granted, provided that this notice is preserved.
+ */
+
+#include <sys/types.h>
+#include <sys/wait.h>
+
+int
+main (void)
+{
+ int status;
+ pid_t pid;
+ pid = wait(&status);
+
+ return 0;
+}