Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/bin/sh Complete implementation of TEST_SH, use builtin...



details:   https://anonhg.NetBSD.org/src/rev/eb6b1677cdca
branches:  trunk
changeset: 814134:eb6b1677cdca
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Mar 08 14:24:06 2016 +0000

description:
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)

diffstat:

 tests/bin/sh/t_wait.sh |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (26 lines):

diff -r a637c5820d18 -r eb6b1677cdca tests/bin/sh/t_wait.sh
--- a/tests/bin/sh/t_wait.sh    Tue Mar 08 14:21:02 2016 +0000
+++ b/tests/bin/sh/t_wait.sh    Tue Mar 08 14:24:06 2016 +0000
@@ -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 @@
        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
 }
 



Home | Main Index | Thread Index | Old Index