aboutsummaryrefslogtreecommitdiff
path: root/testsuite/awk.tests
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/awk.tests')
-rwxr-xr-xtestsuite/awk.tests7
1 files changed, 5 insertions, 2 deletions
diff --git a/testsuite/awk.tests b/testsuite/awk.tests
index 9f353fc10..03fedf771 100755
--- a/testsuite/awk.tests
+++ b/testsuite/awk.tests
@@ -336,10 +336,13 @@ testing "awk continue" \
336 'BEGIN { if (1) continue; else a = 1 }' 336 'BEGIN { if (1) continue; else a = 1 }'
337 337
338testing "awk handles invalid for loop" \ 338testing "awk handles invalid for loop" \
339 "awk '{ for() }' 2>&1" "awk: cmd. line:1: Unexpected token\n" "" "" 339 "awk -e '{ for() }' 2>&1" "awk: cmd. line:1: Unexpected token\n" "" ""
340 340
341testing "awk handles colon not preceded by ternary" \ 341testing "awk handles colon not preceded by ternary" \
342 "awk 'foo:bar:' 2>&1" "awk: cmd. line:1: Unexpected token\n" "" "" 342 "awk -e foo:bar: 2>&1" "awk: cmd. line:1: Unexpected token\n" "" ""
343
344testing "awk errors on missing delete arg" \
345 "awk -e '{delete}' 2>&1" "awk: cmd. line:1: Too few arguments\n" "" ""
343 346
344# testing "description" "command" "result" "infile" "stdin" 347# testing "description" "command" "result" "infile" "stdin"
345testing 'awk negative field access' \ 348testing 'awk negative field access' \