diff options
author | Denys Vlasenko <dvlasenk@redhat.com> | 2010-09-03 17:22:56 +0200 |
---|---|---|
committer | Denys Vlasenko <dvlasenk@redhat.com> | 2010-09-03 17:22:56 +0200 |
commit | 0d7cb4cc9ed557310a2cba8d30dfa38aee20cb49 (patch) | |
tree | 8e50fcf8bc9e105de05a3f316c75411ccd334264 | |
parent | eb2bf5b6bfd04f7e123d7561725b00f807486849 (diff) | |
download | busybox-w32-0d7cb4cc9ed557310a2cba8d30dfa38aee20cb49.tar.gz busybox-w32-0d7cb4cc9ed557310a2cba8d30dfa38aee20cb49.tar.bz2 busybox-w32-0d7cb4cc9ed557310a2cba8d30dfa38aee20cb49.zip |
fix false positive in testsuite/tar.tests
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
-rwxr-xr-x | testsuite/tar.tests | 8 |
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 | |||
58 | ln input_hard1 input_dir | 58 | ln input_hard1 input_dir |
59 | ln input_hard2 input_dir | 59 | ln input_hard2 input_dir |
60 | chmod 550 input_dir | 60 | chmod 550 input_dir |
61 | tar cf test.tar input_* | 61 | # On some filesystems, input_dir/input_hard2 is returned by readdir |
62 | # BEFORE input_dir/input_hard1! Thats why we cant just "tar cf ... input_*": | ||
63 | tar cf test.tar input_dir/input_hard* input_hard* | ||
62 | tar tvf test.tar | sed "s/.*[0-9] input/input/" | 64 | tar tvf test.tar | sed "s/.*[0-9] input/input/" |
63 | chmod 770 input_dir | 65 | chmod 770 input_dir |
64 | rm -rf input_* | 66 | rm -rf input_* |
65 | tar xf test.tar 2>&1 | 67 | tar xf test.tar 2>&1 |
66 | echo Ok: $? | 68 | echo Ok: $? |
67 | ls -l . input_dir/* | grep input_ | sed "s/\\(^[^ ]*\\) .* input/\\1 input/" | 69 | ls -l . input_dir/* | grep "input.*hard" | sed "s/\\(^[^ ]*\\) .* input/\\1 input/" |
68 | ' "\ | 70 | ' "\ |
69 | input_dir/ | ||
70 | input_dir/input_hard1 | 71 | input_dir/input_hard1 |
71 | input_dir/input_hard2 -> input_dir/input_hard1 | 72 | input_dir/input_hard2 -> input_dir/input_hard1 |
72 | input_hard1 -> input_dir/input_hard1 | 73 | input_hard1 -> input_dir/input_hard1 |
@@ -74,7 +75,6 @@ input_hard2 -> input_dir/input_hard1 | |||
74 | Ok: 0 | 75 | Ok: 0 |
75 | -rwxr----x input_dir/input_hard1 | 76 | -rwxr----x input_dir/input_hard1 |
76 | -rwxr----x input_dir/input_hard2 | 77 | -rwxr----x input_dir/input_hard2 |
77 | dr-xr-x--- input_dir | ||
78 | -rwxr----x input_hard1 | 78 | -rwxr----x input_hard1 |
79 | -rwxr----x input_hard2 | 79 | -rwxr----x input_hard2 |
80 | " \ | 80 | " \ |