summaryrefslogtreecommitdiff
path: root/testsuite/awk.tests
diff options
context:
space:
mode:
authorDenys Vlasenko2011-09-11 00:30:56 +0200
committerDenys Vlasenko2011-09-11 00:30:56 +0200
commit7b46d11582047d0dd21b547ff4a913defe646d40 (patch)
treef4f6787860df6536bd1e22deba6ddec41a0e3fa1 /testsuite/awk.tests
parentd48fdde3704f453014404fca321e08238dc4acc4 (diff)
downloadbusybox-7b46d11582047d0dd21b547ff4a913defe646d40.zip
busybox-7b46d11582047d0dd21b547ff4a913defe646d40.tar.gz
awk: fix a SEGV
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite/awk.tests')
-rwxr-xr-xtestsuite/awk.tests3
1 files changed, 3 insertions, 0 deletions
diff --git a/testsuite/awk.tests b/testsuite/awk.tests
index 0afe9b9..5a32304 100755
--- a/testsuite/awk.tests
+++ b/testsuite/awk.tests
@@ -202,4 +202,7 @@ end d
" \
"" ""
+testing "awk handles empty ()" \
+ "awk 'BEGIN {print()}' 2>&1" "awk: cmd. line:1: Empty sequence\n" "" ""
+
exit $FAILCOUNT