diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/tar.test | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/tar.test b/tests/tar.test index dbe28d78..4b2f2120 100644 --- a/tests/tar.test +++ b/tests/tar.test @@ -274,6 +274,12 @@ testcmd 'exclude' '--exclude skip -cvf tar.tar folder && echo yes' \ 'folder/\nyes\n' '' '' rm -rf folder tar.tar +mkdir -p one/two; echo hello > one/two/three; tar czf test.tar one/two/three +rm one/two/three; mkdir one/two/three +testcmd 'replace dir with file' '-xf test.tar && cat one/two/three' \ + 'hello\n' '' '' +rm -rf one test.tar + if false then |