]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: kill_functions.sh needs gawk (skip if sourced)
authorRuediger Meier <ruediger.meier@ga-group.nl>
Tue, 6 May 2014 16:48:35 +0000 (18:48 +0200)
committerRuediger Meier <ruediger.meier@ga-group.nl>
Tue, 6 May 2014 17:29:03 +0000 (19:29 +0200)
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
tests/ts/kill/kill_functions.sh

index 043b4cb4fa00ea3b8d67d478abe6f63cf68878c5..73fff053d48a8cd0081e0276c4bccc4016982804 100644 (file)
@@ -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)) {