aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2016-06-19 18:15:33 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2016-06-19 18:15:33 +0200
commit015db5800ca7c6dd2d201eacb2951e72e6782b30 (patch)
tree0fe9b90c782f2ac831f30793e384b07bd690b3b3 /testsuite
parentce824aecf216536beed00d7817a614ffb8572239 (diff)
downloadbusybox-w32-015db5800ca7c6dd2d201eacb2951e72e6782b30.tar.gz
busybox-w32-015db5800ca7c6dd2d201eacb2951e72e6782b30.tar.bz2
busybox-w32-015db5800ca7c6dd2d201eacb2951e72e6782b30.zip
randomconfig fixes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/busybox.tests16
-rw-r--r--testsuite/du/du-m-works2
2 files changed, 11 insertions, 7 deletions
diff --git a/testsuite/busybox.tests b/testsuite/busybox.tests
index 04fea3ea2..545cad5c0 100755
--- a/testsuite/busybox.tests
+++ b/testsuite/busybox.tests
@@ -6,6 +6,16 @@
6 6
7. ./testing.sh 7. ./testing.sh
8 8
9ln -s `which busybox` unknown
10
11testing "busybox as unknown name" "./unknown 2>&1" \
12 "unknown: applet not found\n" "" ""
13rm unknown
14
15# We need busybox --help to be enabled for the rest of tests
16test x"$CONFIG_BUSYBOX" = x"y" \
17|| { echo "SKIPPED: busybox --help"; exit 0; }
18
9HELPDUMP=`true | busybox 2>&1 | cat` 19HELPDUMP=`true | busybox 2>&1 | cat`
10 20
11# We need to test under calling the binary under other names. 21# We need to test under calling the binary under other names.
@@ -38,10 +48,4 @@ do
38done 48done
39rm busybox-suffix 49rm busybox-suffix
40 50
41ln -s `which busybox` unknown
42
43testing "busybox as unknown name" "./unknown 2>&1" \
44 "unknown: applet not found\n" "" ""
45rm unknown
46
47exit $FAILCOUNT 51exit $FAILCOUNT
diff --git a/testsuite/du/du-m-works b/testsuite/du/du-m-works
index 9fa7437ac..c96c3b359 100644
--- a/testsuite/du/du-m-works
+++ b/testsuite/du/du-m-works
@@ -1,4 +1,4 @@
1# FEATURE: CONFIG_FEATURE_HUMAN_READABLE 1# FEATURE: CONFIG_FEATURE_HUMAN_READABLE
2 2
3dd if=/dev/zero of=file bs=1M count=1 2>/dev/null 3dd if=/dev/zero of=file bs=1M count=1 2>/dev/null
4test x"`busybox du -m .`" = x"1 ." 4test x"`busybox du -m file`" = x"1 ."