aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2012-07-11 01:27:15 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2012-07-11 01:27:15 +0200
commitdf8066a78ccd9b899244145f6be0171957a41a1e (patch)
tree1deceaacbf772c04dbcf84173b7b23e66b7f8598 /testsuite
parente1db338a5187c008819932a4166f3aa27958c48e (diff)
downloadbusybox-w32-df8066a78ccd9b899244145f6be0171957a41a1e.tar.gz
busybox-w32-df8066a78ccd9b899244145f6be0171957a41a1e.tar.bz2
busybox-w32-df8066a78ccd9b899244145f6be0171957a41a1e.zip
awk: fix FS assignment behavior. Closes 5108
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/awk.tests7
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/awk.tests b/testsuite/awk.tests
index d4c390d31..f9c3b6b4d 100755
--- a/testsuite/awk.tests
+++ b/testsuite/awk.tests
@@ -217,4 +217,11 @@ end d
217testing "awk handles empty ()" \ 217testing "awk handles empty ()" \
218 "awk 'BEGIN {print()}' 2>&1" "awk: cmd. line:1: Empty sequence\n" "" "" 218 "awk 'BEGIN {print()}' 2>&1" "awk: cmd. line:1: Empty sequence\n" "" ""
219 219
220testing "awk FS assignment" "awk '{FS=\":\"; print \$1}'" \
221 "a:b\ne\n" \
222 "" \
223 "a:b c:d\ne:f g:h"
224
225# testing "description" "command" "result" "infile" "stdin"
226
220exit $FAILCOUNT 227exit $FAILCOUNT