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
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to