svn commit: r194775 - head/tools/regression/bin/sh/execution
Jilles Tjoelker
jilles at FreeBSD.org
Tue Jun 23 22:03:58 UTC 2009
Author: jilles
Date: Tue Jun 23 22:03:56 2009
New Revision: 194775
URL: http://svn.freebsd.org/changeset/base/194775
Log:
Add tests for r194774.
Approved by: ed (mentor) (implicit)
Added:
head/tools/regression/bin/sh/execution/fork2.0 (contents, props changed)
Added: head/tools/regression/bin/sh/execution/fork2.0
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/tools/regression/bin/sh/execution/fork2.0 Tue Jun 23 22:03:56 2009 (r194775)
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+result=$(sh -c '(/bin/sleep 1)& sleep 0.1; ps -p $! -o comm=; kill $!')
+test "$result" = sleep || exit 1
+
+result=$(sh -c '{ trap "echo trapped" EXIT; (/usr/bin/true); } & wait')
+test "$result" = trapped || exit 1
+
+exit 0
More information about the svn-src-all
mailing list