Module Name: src
Committed By: christos
Date: Tue Mar 8 14:24:06 UTC 2016
Modified Files:
src/tests/bin/sh: t_wait.sh
Log Message:
Complete implementation of TEST_SH, use builting kill (which does
work, now anyway) rather than working around a defect by using
/bin/kill (if the shell is broken, the test should fail, not succeed)
and test more aspects of the wait builtin in the kill test. (from kre)
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/tests/bin/sh/t_wait.sh
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tests/bin/sh/t_wait.sh
diff -u src/tests/bin/sh/t_wait.sh:1.5 src/tests/bin/sh/t_wait.sh:1.6
--- src/tests/bin/sh/t_wait.sh:1.5 Wed Feb 24 09:42:50 2016
+++ src/tests/bin/sh/t_wait.sh Tue Mar 8 09:24:06 2016
@@ -1,4 +1,4 @@
-# $NetBSD: t_wait.sh,v 1.5 2016/02/24 14:42:50 christos Exp $
+# $NetBSD: t_wait.sh,v 1.6 2016/03/08 14:24:06 christos Exp $
#
# Copyright (c) 2008, 2009, 2010 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -84,14 +84,13 @@ EOF
pid=$!
sleep 1
- # XXX: built-in kill does not work?
- /bin/kill -HUP $pid
+ kill -HUP $pid
wait
output="$(cat $z | tr '\n' ' ')"
rm -f $s $z
if [ "$output" != "SIGHUP 129 3 127 " ]; then
- atf_fail "${output} != 'SIGHUP 129 '"
+ atf_fail "${output} != 'SIGHUP 129 3 127 '"
fi
}