testsuite: fix false positives for du
authorDenys Vlasenko <vda.linux@googlemail.com>
Fri, 20 Dec 2013 01:55:16 +0000 (02:55 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 20 Dec 2013 01:55:16 +0000 (02:55 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
testsuite/du/du-k-works
testsuite/du/du-l-works

index 417b0daa52c6208447991b68230f6be5fee28bfe..213e9ba991f9d7138649494446e1914104d65f05 100644 (file)
@@ -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       ."
index 426ee891b94f62d2f5668b90deb4c3f24462c687..af87345dbd6c4816aa15896726445a322a01b95c 100644 (file)
@@ -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      ."