X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/bc3b5b255819230bda8ca80961a7bbaa38a43099..201a2fe5ff2ba8410d49f2a0202e16c5dac176bd:/testsuite/duplicates.test diff --git a/testsuite/duplicates.test b/testsuite/duplicates.test index 54c3a06e..23d2994e 100644 --- a/testsuite/duplicates.test +++ b/testsuite/duplicates.test @@ -19,15 +19,12 @@ # This test is not great, because it is a timing-dependent bug. -. $srcdir/testsuite/rsync.fns +. "$suitedir/rsync.fns" set -x # Build some hardlinks -fromdir="$scratchdir/from" -todir="$scratchdir/to" - mkdir "$fromdir" name1="$fromdir/name1" name2="$fromdir/name2" @@ -42,13 +39,12 @@ checkit "$RSYNC -avv \"$fromdir/\" \"$fromdir/\" \"$fromdir/\" \"$fromdir/\" \"$ # Make sure each file was only copied once... if [ `grep -c '^name1$' "$outfile"` != 1 ] then - test_xfail "name1 was not copied exactly once" + test_fail "name1 was not copied exactly once" fi if [ `grep -c '^name2 -> ' "$outfile"` != 1 ] then - test_xfail "name2 was not copied exactly once" + test_fail "name2 was not copied exactly once" fi +# The script would have aborted on error, so getting here means we've won. exit 0 -# last [] may have failed but if we get here then we've won -