aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2013-12-31 23:22:36 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2013-12-31 23:22:36 +0100
commit198b02f7dd61c6cb9fd4c379dc56edcf537a7ee1 (patch)
tree055b2ab0f2636e100781ddefdbf95417e44bb6df /testsuite
parent61be8e46a80749fe5bb16bc8f831c689d21a4e34 (diff)
downloadbusybox-w32-198b02f7dd61c6cb9fd4c379dc56edcf537a7ee1.tar.gz
busybox-w32-198b02f7dd61c6cb9fd4c379dc56edcf537a7ee1.tar.bz2
busybox-w32-198b02f7dd61c6cb9fd4c379dc56edcf537a7ee1.zip
fix failures found by randomconfig builds
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/awk.tests6
-rwxr-xr-xtestsuite/tar.tests6
2 files changed, 9 insertions, 3 deletions
diff --git a/testsuite/awk.tests b/testsuite/awk.tests
index 50b2a8328..132afc6a9 100755
--- a/testsuite/awk.tests
+++ b/testsuite/awk.tests
@@ -269,10 +269,12 @@ testing "awk FS assignment" "awk '{FS=\":\"; print \$1}'" \
269 "" \ 269 "" \
270 "a:b c:d\ne:f g:h" 270 "a:b c:d\ne:f g:h"
271 271
272optional FEATURE_AWK_LIBM
272testing "awk large integer" \ 273testing "awk large integer" \
273 "awk 'BEGIN{n=(2^31)-1; print n, int(n), n%1, ++n, int(n), n%1}'" \ 274 "awk 'BEGIN{n=(2^31)-1; print n, int(n), n%1, ++n, int(n), n%1}'" \
274 "2147483647 2147483647 0 2147483648 2147483648 0\n" \ 275 "2147483647 2147483647 0 2147483648 2147483648 0\n" \
275 "" "" 276 "" ""
277SKIP=
276 278
277testing "awk length(array)" \ 279testing "awk length(array)" \
278 "awk 'BEGIN{ A[1]=2; A[\"qwe\"]=\"asd\"; print length(A)}'" \ 280 "awk 'BEGIN{ A[1]=2; A[\"qwe\"]=\"asd\"; print length(A)}'" \
@@ -285,11 +287,13 @@ testing "awk -f and ARGC" \
285 "do re mi\n" \ 287 "do re mi\n" \
286 '{print $2; print ARGC;}' \ 288 '{print $2; print ARGC;}' \
287 289
290optional FEATURE_AWK_GNU_EXTENSIONS
288testing "awk -e and ARGC" \ 291testing "awk -e and ARGC" \
289 "awk -e '{print \$2; print ARGC;}' input" \ 292 "awk -e '{print \$2; print ARGC;}' input" \
290 "re\n2\n" \ 293 "re\n2\n" \
291 "do re mi\n" \ 294 "do re mi\n" \
292 "" \ 295 ""
296SKIP=
293 297
294# testing "description" "command" "result" "infile" "stdin" 298# testing "description" "command" "result" "infile" "stdin"
295 299
diff --git a/testsuite/tar.tests b/testsuite/tar.tests
index 93ba5f004..9ea89f15f 100755
--- a/testsuite/tar.tests
+++ b/testsuite/tar.tests
@@ -25,10 +25,12 @@ tar: short read
25SKIP= 25SKIP=
26 26
27optional FEATURE_SEAMLESS_GZ 27optional FEATURE_SEAMLESS_GZ
28# In NOMMU case, "invalid magic" message comes from gunzip child process.
29# Otherwise, it comes from tar.
30# Need to fix output up to avoid false positive.
28testing "Empty file is not a tarball.tar.gz" '\ 31testing "Empty file is not a tarball.tar.gz" '\
29tar xvzf - 2>&1; echo $? 32{ tar xvzf - 2>&1; echo $?; } | grep -Fv "invalid magic"
30' "\ 33' "\
31tar: invalid magic
32tar: short read 34tar: short read
331 351
34" \ 36" \