awk: fix testsuite
authorDenys Vlasenko <vda.linux@googlemail.com>
Sat, 8 Jun 2019 11:00:46 +0000 (13:00 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sat, 8 Jun 2019 11:00:46 +0000 (13:00 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
testsuite/awk.tests

index 0db6a26e4c2c32c4cadfc219df8cd65f1853d345..a7a533ba05daebe61c51f706c71b07182e2fa480 100755 (executable)
@@ -347,14 +347,20 @@ testing "awk continue" \
        "" \
        'BEGIN { if (1) continue; else a = 1 }'
 
+optional FEATURE_AWK_GNU_EXTENSIONS
 testing "awk handles invalid for loop" \
        "awk -e '{ for() }' 2>&1" "awk: cmd. line:1: Unexpected token\n" "" ""
+SKIP=
 
+optional FEATURE_AWK_GNU_EXTENSIONS
 testing "awk handles colon not preceded by ternary" \
        "awk -e foo:bar: 2>&1" "awk: cmd. line:1: Unexpected token\n" "" ""
+SKIP=
 
+optional FEATURE_AWK_GNU_EXTENSIONS
 testing "awk errors on missing delete arg" \
        "awk -e '{delete}' 2>&1" "awk: cmd. line:1: Too few arguments\n" "" ""
+SKIP=
 
 # testing "description" "command" "result" "infile" "stdin"
 testing 'awk negative field access' \