diff options
author | Dan Fandrich | 2010-08-10 23:33:57 -0700 |
---|---|---|
committer | Denys Vlasenko | 2010-08-11 14:09:28 +0200 |
commit | 775965de859c6df5d5652f3f58edfd68803f0813 (patch) | |
tree | 445445fa22d29a79b68dcfd109854a12ffe44ec4 /testsuite/du/du-k-works | |
parent | f03fc7d77a5df53aae5eb2d02a49860dc2878da7 (diff) | |
download | busybox-775965de859c6df5d5652f3f58edfd68803f0813.zip busybox-775965de859c6df5d5652f3f58edfd68803f0813.tar.gz |
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/du-k-works')
-rw-r--r-- | testsuite/du/du-k-works | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/testsuite/du/du-k-works b/testsuite/du/du-k-works index a522649..229a948 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 ." |