diff options
-rwxr-xr-x | testsuite/makedevs.tests | 5 | ||||
-rwxr-xr-x | testsuite/printf.tests | 6 | ||||
-rwxr-xr-x | testsuite/tar.tests | 8 |
3 files changed, 14 insertions, 5 deletions
diff --git a/testsuite/makedevs.tests b/testsuite/makedevs.tests index eb51410b3..fd12460ec 100755 --- a/testsuite/makedevs.tests +++ b/testsuite/makedevs.tests | |||
@@ -4,6 +4,11 @@ | |||
4 | 4 | ||
5 | . ./testing.sh | 5 | . ./testing.sh |
6 | 6 | ||
7 | test x"`id -u`" = x"0" || { | ||
8 | echo "SKIPPED: makedevs (must be root to test this)" | ||
9 | exit 0 | ||
10 | } | ||
11 | |||
7 | unset LANG | 12 | unset LANG |
8 | unset LC_COLLATE | 13 | unset LC_COLLATE |
9 | unset LC_ALL | 14 | unset LC_ALL |
diff --git a/testsuite/printf.tests b/testsuite/printf.tests index b48e293f4..9a3c87473 100755 --- a/testsuite/printf.tests +++ b/testsuite/printf.tests | |||
@@ -89,9 +89,9 @@ testing "printf understands %Ld" \ | |||
89 | 89 | ||
90 | testing "printf handles %d bad_input" \ | 90 | testing "printf handles %d bad_input" \ |
91 | "${bb}printf '%d\n' 1 - 2 bad 3 123bad 4 2>&1; echo \$?" \ | 91 | "${bb}printf '%d\n' 1 - 2 bad 3 123bad 4 2>&1; echo \$?" \ |
92 | "1\n""printf: -: invalid number\n""0\n"\ | 92 | "1\n""printf: invalid number '-'\n""0\n"\ |
93 | "2\n""printf: bad: invalid number\n""0\n"\ | 93 | "2\n""printf: invalid number 'bad'\n""0\n"\ |
94 | "3\n""printf: 123bad: invalid number\n""0\n"\ | 94 | "3\n""printf: invalid number '123bad'\n""0\n"\ |
95 | "4\n""1\n" \ | 95 | "4\n""1\n" \ |
96 | "" "" | 96 | "" "" |
97 | 97 | ||
diff --git a/testsuite/tar.tests b/testsuite/tar.tests index cef16b65e..8b2523ff1 100755 --- a/testsuite/tar.tests +++ b/testsuite/tar.tests | |||
@@ -55,11 +55,13 @@ rm -rf input_* test.tar 2>/dev/null | |||
55 | chmod 741 input_hard1 | 55 | chmod 741 input_hard1 |
56 | ln input_hard1 input_hard2 | 56 | ln input_hard1 input_hard2 |
57 | mkdir input_dir | 57 | mkdir input_dir |
58 | chmod 550 input_dir | ||
59 | ln input_hard1 input_dir | 58 | ln input_hard1 input_dir |
60 | ln input_hard2 input_dir | 59 | ln input_hard2 input_dir |
60 | chmod 550 input_dir | ||
61 | tar cf test.tar input_* | 61 | tar cf test.tar input_* |
62 | tar tvf test.tar | sed "s/.*[0-9] input/input/" | 62 | tar tvf test.tar | sed "s/.*[0-9] input/input/" |
63 | chmod 770 input_dir | ||
64 | rm -rf input_* | ||
63 | tar xf test.tar 2>&1 | 65 | tar xf test.tar 2>&1 |
64 | echo Ok: $? | 66 | echo Ok: $? |
65 | ls -l . input_dir/* | grep input_ | sed "s/\\(^[^ ]*\\) .* input/\\1 input/" | 67 | ls -l . input_dir/* | grep input_ | sed "s/\\(^[^ ]*\\) .* input/\\1 input/" |
@@ -86,11 +88,13 @@ rm -rf input_* test.tar 2>/dev/null | |||
86 | chmod 741 input_file | 88 | chmod 741 input_file |
87 | ln -s input_file input_soft | 89 | ln -s input_file input_soft |
88 | mkdir input_dir | 90 | mkdir input_dir |
89 | chmod 550 input_dir | ||
90 | ln input_file input_dir | 91 | ln input_file input_dir |
91 | ln input_soft input_dir | 92 | ln input_soft input_dir |
93 | chmod 550 input_dir | ||
92 | tar cf test.tar input_* | 94 | tar cf test.tar input_* |
93 | tar tvf test.tar | sed "s/.*[0-9] input/input/" | sort | 95 | tar tvf test.tar | sed "s/.*[0-9] input/input/" | sort |
96 | chmod 770 input_dir | ||
97 | rm -rf input_* | ||
94 | tar xf test.tar 2>&1 | 98 | tar xf test.tar 2>&1 |
95 | echo Ok: $? | 99 | echo Ok: $? |
96 | ls -l . input_dir/* | grep input_ | sed "s/\\(^[^ ]*\\) .* input/\\1 input/" | 100 | ls -l . input_dir/* | grep input_ | sed "s/\\(^[^ ]*\\) .* input/\\1 input/" |