diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2019-06-08 13:00:46 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2019-06-08 13:00:46 +0200 |
commit | 22cc92833f98450f37a2e82e4a6a36c418b4cc67 (patch) | |
tree | 3469490c70fbea7ae324aefe8e610423c0f59199 | |
parent | 04a0b7f0805e1faac9e277c46328e8785966fa6c (diff) | |
download | busybox-w32-22cc92833f98450f37a2e82e4a6a36c418b4cc67.tar.gz busybox-w32-22cc92833f98450f37a2e82e4a6a36c418b4cc67.tar.bz2 busybox-w32-22cc92833f98450f37a2e82e4a6a36c418b4cc67.zip |
awk: fix testsuite
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rwxr-xr-x | testsuite/awk.tests | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/awk.tests b/testsuite/awk.tests index 0db6a26e4..a7a533ba0 100755 --- a/testsuite/awk.tests +++ b/testsuite/awk.tests | |||
@@ -347,14 +347,20 @@ testing "awk continue" \ | |||
347 | "" \ | 347 | "" \ |
348 | 'BEGIN { if (1) continue; else a = 1 }' | 348 | 'BEGIN { if (1) continue; else a = 1 }' |
349 | 349 | ||
350 | optional FEATURE_AWK_GNU_EXTENSIONS | ||
350 | testing "awk handles invalid for loop" \ | 351 | testing "awk handles invalid for loop" \ |
351 | "awk -e '{ for() }' 2>&1" "awk: cmd. line:1: Unexpected token\n" "" "" | 352 | "awk -e '{ for() }' 2>&1" "awk: cmd. line:1: Unexpected token\n" "" "" |
353 | SKIP= | ||
352 | 354 | ||
355 | optional FEATURE_AWK_GNU_EXTENSIONS | ||
353 | testing "awk handles colon not preceded by ternary" \ | 356 | testing "awk handles colon not preceded by ternary" \ |
354 | "awk -e foo:bar: 2>&1" "awk: cmd. line:1: Unexpected token\n" "" "" | 357 | "awk -e foo:bar: 2>&1" "awk: cmd. line:1: Unexpected token\n" "" "" |
358 | SKIP= | ||
355 | 359 | ||
360 | optional FEATURE_AWK_GNU_EXTENSIONS | ||
356 | testing "awk errors on missing delete arg" \ | 361 | testing "awk errors on missing delete arg" \ |
357 | "awk -e '{delete}' 2>&1" "awk: cmd. line:1: Too few arguments\n" "" "" | 362 | "awk -e '{delete}' 2>&1" "awk: cmd. line:1: Too few arguments\n" "" "" |
363 | SKIP= | ||
358 | 364 | ||
359 | # testing "description" "command" "result" "infile" "stdin" | 365 | # testing "description" "command" "result" "infile" "stdin" |
360 | testing 'awk negative field access' \ | 366 | testing 'awk negative field access' \ |