diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-11-22 23:49:10 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-11-22 23:49:10 +0100 |
commit | 26777aa1c659b229f07205291241e45e64712a72 (patch) | |
tree | 9f145eef2fe8ffb957ab89ee2f6d0ea9dc7dbd2e /testsuite | |
parent | 29ca1591335b2a73522c2c3ef43daff63c71e8dc (diff) | |
download | busybox-w32-26777aa1c659b229f07205291241e45e64712a72.tar.gz busybox-w32-26777aa1c659b229f07205291241e45e64712a72.tar.bz2 busybox-w32-26777aa1c659b229f07205291241e45e64712a72.zip |
fixes for bugs discovered by randomconfig builds and tests
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/du/du-h-works | 2 | ||||
-rwxr-xr-x | testsuite/md5sum.tests | 5 |
2 files changed, 6 insertions, 1 deletions
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 @@ | |||
1 | # FEATURE: CONFIG_FEATURE_HUMAN_READABLE | 1 | # FEATURE: CONFIG_FEATURE_HUMAN_READABLE |
2 | 2 | ||
3 | dd if=/dev/zero of=file bs=1M count=1 2>/dev/null | 3 | dd if=/dev/zero of=file bs=1M count=1 2>/dev/null |
4 | test x"`busybox du -h .`" = x"1.0M ." | 4 | 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 | |||
18 | sum="$1" | 18 | sum="$1" |
19 | expected="$2" | 19 | expected="$2" |
20 | 20 | ||
21 | test -f "$bindir/.config" && . "$bindir/.config" | ||
22 | |||
23 | test x"$CONFIG_FEATURE_FANCY_HEAD" != x"y" \ | ||
24 | && { echo "SKIPPED: $sum"; exit 0; } | ||
25 | |||
21 | text="The quick brown fox jumps over the lazy dog" | 26 | text="The quick brown fox jumps over the lazy dog" |
22 | text=`yes "$text" | head -c 9999` | 27 | text=`yes "$text" | head -c 9999` |
23 | 28 | ||