From 26777aa1c659b229f07205291241e45e64712a72 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Mon, 22 Nov 2010 23:49:10 +0100 Subject: fixes for bugs discovered by randomconfig builds and tests Signed-off-by: Denys Vlasenko --- testsuite/du/du-h-works | 2 +- testsuite/md5sum.tests | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'testsuite') diff --git a/testsuite/du/du-h-works b/testsuite/du/du-h-works index c18433c29..1c77b6552 100644 --- a/testsuite/du/du-h-works +++ b/testsuite/du/du-h-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 -h .`" = x"1.0M ." +test x"`busybox du -h file`" = x"1.0M file" diff --git a/testsuite/md5sum.tests b/testsuite/md5sum.tests index 35ec67cb4..1068b083f 100755 --- a/testsuite/md5sum.tests +++ b/testsuite/md5sum.tests @@ -18,6 +18,11 @@ fi sum="$1" expected="$2" +test -f "$bindir/.config" && . "$bindir/.config" + +test x"$CONFIG_FEATURE_FANCY_HEAD" != x"y" \ +&& { echo "SKIPPED: $sum"; exit 0; } + text="The quick brown fox jumps over the lazy dog" text=`yes "$text" | head -c 9999` -- cgit v1.2.3