From 015db5800ca7c6dd2d201eacb2951e72e6782b30 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sun, 19 Jun 2016 18:15:33 +0200 Subject: randomconfig fixes Signed-off-by: Denys Vlasenko --- testsuite/busybox.tests | 16 ++++++++++------ testsuite/du/du-m-works | 2 +- 2 files changed, 11 insertions(+), 7 deletions(-) (limited to 'testsuite') diff --git a/testsuite/busybox.tests b/testsuite/busybox.tests index 04fea3e..545cad5 100755 --- a/testsuite/busybox.tests +++ b/testsuite/busybox.tests @@ -6,6 +6,16 @@ . ./testing.sh +ln -s `which busybox` unknown + +testing "busybox as unknown name" "./unknown 2>&1" \ + "unknown: applet not found\n" "" "" +rm unknown + +# We need busybox --help to be enabled for the rest of tests +test x"$CONFIG_BUSYBOX" = x"y" \ +|| { echo "SKIPPED: busybox --help"; exit 0; } + HELPDUMP=`true | busybox 2>&1 | cat` # We need to test under calling the binary under other names. @@ -38,10 +48,4 @@ do done rm busybox-suffix -ln -s `which busybox` unknown - -testing "busybox as unknown name" "./unknown 2>&1" \ - "unknown: applet not found\n" "" "" -rm unknown - exit $FAILCOUNT diff --git a/testsuite/du/du-m-works b/testsuite/du/du-m-works index 9fa7437..c96c3b3 100644 --- a/testsuite/du/du-m-works +++ b/testsuite/du/du-m-works @@ -1,4 +1,4 @@ # FEATURE: CONFIG_FEATURE_HUMAN_READABLE dd if=/dev/zero of=file bs=1M count=1 2>/dev/null -test x"`busybox du -m .`" = x"1 ." +test x"`busybox du -m file`" = x"1 ." -- cgit v1.1