From 8d4d36e287790f8b121d06dc200ec52337a143b5 Mon Sep 17 00:00:00 2001 From: Ruediger Meier Date: Tue, 6 May 2014 18:48:35 +0200 Subject: [PATCH] tests: kill_functions.sh needs gawk (skip if sourced) Signed-off-by: Ruediger Meier --- tests/ts/kill/kill_functions.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)) { -- 2.47.2