From: Ruediger Meier Date: Tue, 6 May 2014 16:48:35 +0000 (+0200) Subject: tests: kill_functions.sh needs gawk (skip if sourced) X-Git-Tag: v2.25-rc1~199^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d4d36e287790f8b121d06dc200ec52337a143b5;p=thirdparty%2Futil-linux.git tests: kill_functions.sh needs gawk (skip if sourced) Signed-off-by: Ruediger Meier --- diff --git a/tests/ts/kill/kill_functions.sh b/tests/ts/kill/kill_functions.sh index 043b4cb4fa..73fff053d4 100644 --- a/tests/ts/kill/kill_functions.sh +++ b/tests/ts/kill/kill_functions.sh @@ -1,11 +1,14 @@ +# unfortunately we are using gawk features +type gawk >/dev/null 2>&1 || ts_skip "cannot find gawk" + # The test_sigreceive is ready when signal process mask contains SIGHUP function check_test_sigreceive { local rc=0 local pid=$1 for i in 0.01 0.1 1 1 1 1; do - awk 'BEGIN { retval=1 } + gawk 'BEGIN { retval=1 } /^SigCgt/ { lbyte = strtonum("0x" substr($2, 16, 16)) if (and(lbyte, 1)) {