aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorDenys Vlasenko <dvlasenk@redhat.com>2010-09-03 17:22:56 +0200
committerDenys Vlasenko <dvlasenk@redhat.com>2010-09-03 17:22:56 +0200
commit0d7cb4cc9ed557310a2cba8d30dfa38aee20cb49 (patch)
tree8e50fcf8bc9e105de05a3f316c75411ccd334264 /testsuite
parenteb2bf5b6bfd04f7e123d7561725b00f807486849 (diff)
downloadbusybox-0d7cb4cc9ed557310a2cba8d30dfa38aee20cb49.tar.gz
fix false positive in testsuite/tar.tests
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/tar.tests8
1 files changed, 4 insertions, 4 deletions
diff --git a/testsuite/tar.tests b/testsuite/tar.tests
index 8b2523ff1..c2d3b3df3 100755
--- a/testsuite/tar.tests
+++ b/testsuite/tar.tests
@@ -58,15 +58,16 @@ mkdir input_dir
ln input_hard1 input_dir
ln input_hard2 input_dir
chmod 550 input_dir
-tar cf test.tar input_*
+# On some filesystems, input_dir/input_hard2 is returned by readdir
+# BEFORE input_dir/input_hard1! Thats why we cant just "tar cf ... input_*":
+tar cf test.tar input_dir/input_hard* input_hard*
tar tvf test.tar | sed "s/.*[0-9] input/input/"
chmod 770 input_dir
rm -rf input_*
tar xf test.tar 2>&1
echo Ok: $?
-ls -l . input_dir/* | grep input_ | sed "s/\\(^[^ ]*\\) .* input/\\1 input/"
+ls -l . input_dir/* | grep "input.*hard" | sed "s/\\(^[^ ]*\\) .* input/\\1 input/"
' "\
-input_dir/
input_dir/input_hard1
input_dir/input_hard2 -> input_dir/input_hard1
input_hard1 -> input_dir/input_hard1
@@ -74,7 +75,6 @@ input_hard2 -> input_dir/input_hard1
Ok: 0
-rwxr----x input_dir/input_hard1
-rwxr----x input_dir/input_hard2
-dr-xr-x--- input_dir
-rwxr----x input_hard1
-rwxr----x input_hard2
" \