1
0
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:
Jilles Tjoelker 2009-06-23 22:03:56 +00:00
parent 4f6e4215a0
commit e2451bddff
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=194775

View 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