diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2010-08-11 10:33:57 +0400 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-08-11 16:09:28 +0400 |
commit | 775965de859c6df5d5652f3f58edfd68803f0813 (patch) | |
tree | 445445fa22d29a79b68dcfd109854a12ffe44ec4 /testsuite/du | |
parent | f03fc7d77a5df53aae5eb2d02a49860dc2878da7 (diff) |
Improved portability of tests
Removed assumptions about umask and locale. Fixed hostname
tests to work even when the host has no DNS domain set.
Signed-off-by: Dan Fandrich <dan@coneharvesters.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite/du')
-rw-r--r-- | testsuite/du/du-k-works | 4 | ||||
-rw-r--r-- | testsuite/du/du-l-works | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/testsuite/du/du-k-works b/testsuite/du/du-k-works index a52264945..229a948ee 100644 --- a/testsuite/du/du-k-works +++ b/testsuite/du/du-k-works @@ -1,4 +1,6 @@ +mkdir du.testdir +cd du.testdir 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 test x"`busybox du -k .`" = x"80 ." \ - -o x"`busybox du -k .`" = x"88 ." \ + -o x"`busybox du -k .`" = x"88 ." diff --git a/testsuite/du/du-l-works b/testsuite/du/du-l-works index 6b150e0dd..426ee891b 100644 --- a/testsuite/du/du-l-works +++ b/testsuite/du/du-l-works @@ -1,8 +1,11 @@ # FEATURE: CONFIG_FEATURE_DU_DEFAULT_BLOCKSIZE_1K +mkdir du.testdir +cd du.testdir 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"148 ." \ -o x"`busybox du -l .`" = x"152 ." \ + -o x"`busybox du -l .`" = x"156 ." |