diff options
Diffstat (limited to 'testsuite/tar.tests')
-rwxr-xr-x | testsuite/tar.tests | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/testsuite/tar.tests b/testsuite/tar.tests index 1675b07b1..6c479d3fe 100755 --- a/testsuite/tar.tests +++ b/testsuite/tar.tests | |||
@@ -365,4 +365,20 @@ n8fYaKlioCTzL2oXYczyUUIP4u5IpwoSEwWdtoA= | |||
365 | SKIP= | 365 | SKIP= |
366 | cd .. || exit 1; rm -rf tar.tempdir 2>/dev/null | 366 | cd .. || exit 1; rm -rf tar.tempdir 2>/dev/null |
367 | 367 | ||
368 | mkdir tar.tempdir && cd tar.tempdir || exit 1 | ||
369 | testing "Symlinks and hardlinks coexist" '\ | ||
370 | mkdir dir | ||
371 | >dir/a | ||
372 | ln -s ../dir/a dir/b | ||
373 | ln dir/b dir/c | ||
374 | mkdir new | ||
375 | tar cf - dir/* | tar -C new -xvf - 2>&1 | ||
376 | ' "\ | ||
377 | dir/a | ||
378 | dir/b | ||
379 | dir/c | ||
380 | " \ | ||
381 | "" "" | ||
382 | cd .. || exit 1; rm -rf tar.tempdir 2>/dev/null | ||
383 | |||
368 | exit $FAILCOUNT | 384 | exit $FAILCOUNT |