aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2013-11-21 15:09:55 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2013-11-21 15:09:55 +0100
commitbd0e221620eb725043b4e748248046ece996a393 (patch)
tree54d12beebe19b7c50c6b14b15ad18c302fa0eff9 /testsuite
parent2635369a92db338321b2ba38e73539992967357c (diff)
downloadbusybox-w32-bd0e221620eb725043b4e748248046ece996a393.tar.gz
busybox-w32-bd0e221620eb725043b4e748248046ece996a393.tar.bz2
busybox-w32-bd0e221620eb725043b4e748248046ece996a393.zip
awk: fix a bug in argc counting in recent change
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/awk.tests14
1 files changed, 13 insertions, 1 deletions
diff --git a/testsuite/awk.tests b/testsuite/awk.tests
index a02302405..50b2a8328 100755
--- a/testsuite/awk.tests
+++ b/testsuite/awk.tests
@@ -275,10 +275,22 @@ testing "awk large integer" \
275 "" "" 275 "" ""
276 276
277testing "awk length(array)" \ 277testing "awk length(array)" \
278 "awk 'BEGIN{ A[1]=2; A["qwe"]="asd"; print length(A)}'" \ 278 "awk 'BEGIN{ A[1]=2; A[\"qwe\"]=\"asd\"; print length(A)}'" \
279 "2\n" \ 279 "2\n" \
280 "" "" 280 "" ""
281 281
282testing "awk -f and ARGC" \
283 "awk -f - input" \
284 "re\n2\n" \
285 "do re mi\n" \
286 '{print $2; print ARGC;}' \
287
288testing "awk -e and ARGC" \
289 "awk -e '{print \$2; print ARGC;}' input" \
290 "re\n2\n" \
291 "do re mi\n" \
292 "" \
293
282# testing "description" "command" "result" "infile" "stdin" 294# testing "description" "command" "result" "infile" "stdin"
283 295
284exit $FAILCOUNT 296exit $FAILCOUNT