# Test tiny function to trim trailing slashes.
-. $srcdir/testsuite/rsync.fns
+. "$suitedir/rsync.fns"
set -x
"//a//" "////" \
"/Users/Wierd Macintosh Name/// Ooh, translucent plastic/" \
> "$scratchdir/slash.out"
-diff -c "$scratchdir/slash.out" - <<EOF
+diff $diffopt "$scratchdir/slash.out" - <<EOF
/usr/local/bin
/usr/local/bin
/usr/local/bin
/Users/Wierd Macintosh Name/// Ooh, translucent plastic
EOF
+# 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
-