aboutsummaryrefslogtreecommitdiff
path: root/testsuite/awk.tests
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/awk.tests')
-rwxr-xr-xtestsuite/awk.tests6
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/awk.tests b/testsuite/awk.tests
index ad0583afb..3933fefc9 100755
--- a/testsuite/awk.tests
+++ b/testsuite/awk.tests
@@ -339,5 +339,11 @@ testing "awk handles invalid for loop" \
339 "awk '{ for() }' 2>&1" "awk: cmd. line:1: Unexpected token\n" "" "" 339 "awk '{ for() }' 2>&1" "awk: cmd. line:1: Unexpected token\n" "" ""
340 340
341# testing "description" "command" "result" "infile" "stdin" 341# testing "description" "command" "result" "infile" "stdin"
342testing 'awk negative field access' \
343 'awk 2>&1 -- '\''{ $(-1) }'\' \
344 "awk: cmd. line:1: Access to negative field\n" \
345 '' \
346 'anything'
347
342 348
343exit $FAILCOUNT 349exit $FAILCOUNT