[git commit] testsuite: fix false positives for du
Denys Vlasenko
vda.linux at googlemail.com
Fri Dec 20 01:55:16 UTC 2013
commit: http://git.busybox.net/busybox/commit/?id=e85e260e4720cd8f652c19b4df3e6901c02b9169
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
testsuite/du/du-k-works | 2 ++
testsuite/du/du-l-works | 1 +
2 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/testsuite/du/du-k-works b/testsuite/du/du-k-works
index 417b0da..213e9ba 100644
--- a/testsuite/du/du-k-works
+++ b/testsuite/du/du-k-works
@@ -4,8 +4,10 @@ dd if=/dev/zero of=file1 bs=1k count=64 2>/dev/null
dd if=/dev/zero of=file2 bs=1k count=16 2>/dev/null
# ext4 on images <512M gives 81kb
# ext3 on images <512M gives 83kb
+# a bsd system reportedly gives 82kb
test x"`busybox du -k .`" = x"80 ." \
-o x"`busybox du -k .`" = x"81 ." \
+ -o x"`busybox du -k .`" = x"82 ." \
-o x"`busybox du -k .`" = x"83 ." \
-o x"`busybox du -k .`" = x"84 ." \
-o x"`busybox du -k .`" = x"88 ."
diff --git a/testsuite/du/du-l-works b/testsuite/du/du-l-works
index 426ee89..af87345 100644
--- a/testsuite/du/du-l-works
+++ b/testsuite/du/du-l-works
@@ -6,6 +6,7 @@ dd if=/dev/zero of=file1 bs=1k count=64 2>/dev/null
ln file1 file1.1
dd if=/dev/zero of=file2 bs=1k count=16 2>/dev/null
test x"`busybox du -l .`" = x"144 ." \
+ -o x"`busybox du -l .`" = x"146 ." \
-o x"`busybox du -l .`" = x"148 ." \
-o x"`busybox du -l .`" = x"152 ." \
-o x"`busybox du -l .`" = x"156 ."
More information about the busybox-cvs
mailing list