aboutsummaryrefslogtreecommitdiff
path: root/testsuite/tar.tests
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tar.tests')
-rwxr-xr-xtestsuite/tar.tests13
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/tar.tests b/testsuite/tar.tests
index 35f96b77e..6c136a615 100755
--- a/testsuite/tar.tests
+++ b/testsuite/tar.tests
@@ -31,6 +31,19 @@ Ok
31" \ 31" \
32"" "" 32"" ""
33 33
34testing "tar --overwrite" "\
35rm -rf input_* test.tar 2>/dev/null
36ln input input_hard
37tar cf test.tar input_hard
38echo WRONG >input
39# --overwrite opens 'input_hard' without unlinking,
40# thus 'input_hard' still linked to 'input' and we write 'Ok' into it
41tar xf test.tar --overwrite 2>&1 && cat input
42" "\
43Ok
44" \
45"Ok\n" ""
46
34cd .. && rm -rf tempdir || exit 1 47cd .. && rm -rf tempdir || exit 1
35 48
36exit $FAILCOUNT 49exit $FAILCOUNT