mirror of
https://git.FreeBSD.org/src.git
synced 2024-10-18 02:19:39 +00:00
Add tests for r194774.
Approved by: ed (mentor) (implicit)
This commit is contained in:
parent
4f6e4215a0
commit
e2451bddff
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=194775
9
tools/regression/bin/sh/execution/fork2.0
Normal file
9
tools/regression/bin/sh/execution/fork2.0
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user