summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorDenis Vlasenko2008-07-01 01:57:36 +0000
committerDenis Vlasenko2008-07-01 01:57:36 +0000
commit3bb2bbd68419ce4e777a89bf43ea7e5781dd787f (patch)
treed0cb885fb2250f447dd5e4ffbbc4a6e14e1125ed /testsuite
parent0a656920487bf844664ca58ce5cef158228490fa (diff)
downloadbusybox-3bb2bbd68419ce4e777a89bf43ea7e5781dd787f.zip
busybox-3bb2bbd68419ce4e777a89bf43ea7e5781dd787f.tar.gz
awk: fix a case with multiple -f options. simplify -f file reading.
function old new delta parse_expr 833 841 +8 qrealloc 33 36 +3 next_input_file 203 198 -5 afopen 22 - -22 ftello 41 - -41 ftell 41 - -41 __GI_ftell 41 - -41 awk_main 1002 944 -58 ------------------------------------------------------------------------------ (add/remove: 0/4 grow/shrink: 2/2 up/down: 11/-208) Total: -197 bytes text data bss dec hex filename 804232 610 6804 811646 c627e busybox_old 804120 610 6804 811534 c620e busybox_unstripped
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/awk.tests7
-rw-r--r--testsuite/awk_t1.tar.bz2bin0 -> 15955 bytes
2 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/awk.tests b/testsuite/awk.tests
index 9165741..f69da2c 100755
--- a/testsuite/awk.tests
+++ b/testsuite/awk.tests
@@ -17,4 +17,11 @@ testing "awk -F case 5" "awk -F '[#]' '{ print NF }'" "4\n" "" "#abc##zz\n"
testing "awk -F case 6" "awk -F '[#]' '{ print NF }'" "4\n" "" "z#abc##zz\n"
testing "awk -F case 7" "awk -F '[#]' '{ print NF }'" "5\n" "" "z##abc##zz\n"
+tar xjf awk_t1.tar.bz2
+testing "awk 'gcc build bug'" \
+ "awk -f awk_t1_opt-functions.awk -f awk_t1_opth-gen.awk <awk_t1_input | md5sum" \
+ "f842e256461a5ab1ec60b58d16f1114f -\n" \
+ "" ""
+rm -rf awk_t1_*
+
exit $FAILCOUNT
diff --git a/testsuite/awk_t1.tar.bz2 b/testsuite/awk_t1.tar.bz2
new file mode 100644
index 0000000..0fb8a07
--- /dev/null
+++ b/testsuite/awk_t1.tar.bz2
Binary files differ