diff options
Diffstat (limited to 'tests/link.test')
-rwxr-xr-x | tests/link.test | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/link.test b/tests/link.test index 5851129f..d91b7946 100755 --- a/tests/link.test +++ b/tests/link.test @@ -8,19 +8,19 @@ #testing "name" "command" "result" "infile" "stdin" echo "" >foo -testing "link fails on non-existent file" "link foo/foo baz || echo GOOD" "GOOD\n" "" "" +testing "fails on non-existent file" "link foo/foo baz || echo GOOD" "GOOD\n" "" "" rm -f foo bar echo file1 > file -testing "link create_hardlink" "link file hlink && [ file -ef hlink ] && +testing "create_hardlink" "link file hlink && [ file -ef hlink ] && echo 'yes'; rm -rf hlink" "yes\n" "" "" echo hlink1 > hlink set +e -testing "link preserves_hardlinks" "link file hlink 2>/dev/null || echo 'yes'; rm -rf hlink" \ +testing "preserves_hardlinks" "link file hlink 2>/dev/null || echo 'yes'; rm -rf hlink" \ "yes\n" "" "" echo file1 > file -testing "link create_hardlink_and_remove_sourcefile" "link file hlink && +testing "create_hardlink_and_remove_sourcefile" "link file hlink && [ file -ef hlink ] && rm -rf file && [ -f hlink ] && echo 'yes'; rm -f file hlink" \ "yes\n" "" "" |