From 0cd38780080223c610c8ca1c9b2e7d905506baa5 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Fri, 4 Dec 2009 06:55:02 +0000 Subject: [PATCH] =?UTF-8?q?2009-12-04=20=20=20=20=20=20Ralf=20Cors=C3=A9pi?= =?UTF-8?q?us=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * POSIX/Makefile.am: Add wait. * POSIX/wait.c: New. --- testsuites/libtests/ChangeLog | 5 +++++ testsuites/libtests/POSIX/Makefile.am | 3 +++ testsuites/libtests/POSIX/wait.c | 20 ++++++++++++++++++++ 3 files changed, 28 insertions(+) create mode 100644 testsuites/libtests/POSIX/wait.c diff --git a/testsuites/libtests/ChangeLog b/testsuites/libtests/ChangeLog index ed19cfe9dc..9ebfce0cf9 100644 --- a/testsuites/libtests/ChangeLog +++ b/testsuites/libtests/ChangeLog @@ -1,3 +1,8 @@ +2009-12-04 Ralf Corsépius + + * POSIX/Makefile.am: Add wait. + * POSIX/wait.c: New. + 2009-12-03 Joel Sherrill * bspcmdline01/test.c: Removed. 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 +#include + +int +main (void) +{ + int status; + pid_t pid; + pid = wait(&status); + + return 0; +}