aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2009-03-15 22:20:31 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2009-03-15 22:20:31 +0000
commit7a6766428e3306c3bdc98e0fff207e5015af8930 (patch)
treeae7fee824a19d909c91cec0e2000551eb9d64d81 /testsuite
parent9210a36495f90343989a7cd90b2c1949803c7460 (diff)
downloadbusybox-w32-7a6766428e3306c3bdc98e0fff207e5015af8930.tar.gz
busybox-w32-7a6766428e3306c3bdc98e0fff207e5015af8930.tar.bz2
busybox-w32-7a6766428e3306c3bdc98e0fff207e5015af8930.zip
awk: fix compat issue found by gpm build
function old new delta as_regex 105 131 +26 hash_find 247 233 -14 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/1 up/down: 26/-14) Total: 12 bytes
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/awk.tests5
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/awk.tests b/testsuite/awk.tests
index 953a6e5e1..8e72dd38f 100755
--- a/testsuite/awk.tests
+++ b/testsuite/awk.tests
@@ -22,6 +22,11 @@ testing "awk hex const 1" "awk '{ print or(0xffffffff,1) }'" "4.29497e+09\n" ""
22testing "awk hex const 2" "awk '{ print or(0x80000000,1) }'" "2.14748e+09\n" "" "\n" 22testing "awk hex const 2" "awk '{ print or(0x80000000,1) }'" "2.14748e+09\n" "" "\n"
23testing "awk oct const" "awk '{ print or(01234,1) }'" "669\n" "" "\n" 23testing "awk oct const" "awk '{ print or(01234,1) }'" "669\n" "" "\n"
24 24
25# '@(samp|code|file)\{' is an invalid extended regex (unmatched '{'),
26# but gawk 3.1.5 does not bail out on it.
27testing "awk gsub falls back to non-extended-regex" \
28 "awk 'gsub(\"@(samp|code|file)\{\",\"\");'; echo \$?" "0\n" "" "Hi\n"
29
25tar xjf awk_t1.tar.bz2 30tar xjf awk_t1.tar.bz2
26testing "awk 'gcc build bug'" \ 31testing "awk 'gcc build bug'" \
27 "awk -f awk_t1_opt-functions.awk -f awk_t1_opth-gen.awk <awk_t1_input | md5sum" \ 32 "awk -f awk_t1_opt-functions.awk -f awk_t1_opth-gen.awk <awk_t1_input | md5sum" \