Changed some instances of \" in checkit calls to '.
[rsync/rsync.git] / testsuite / trimslash.test
index cf11840..d98ff87 100644 (file)
@@ -7,15 +7,13 @@
 
 # Test tiny function to trim trailing slashes.
 
-. $srcdir/testsuite/rsync.fns
-
-set -x
+. "$suitedir/rsync.fns"
 
 "$TOOLDIR/trimslash" "/usr/local/bin" "/usr/local/bin/" "/usr/local/bin///" \
        "//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
@@ -24,6 +22,5 @@ diff -c "$scratchdir/slash.out" - <<EOF
 /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
-