##// END OF EJS Templates
tests: use pdiff instead of diff for portability...
FUJIWARA Katsunori -
r33614:798f7bea stable
parent child Browse files
Show More
@@ -47,21 +47,21 b' Make a helper function to check cache da'
47 > echo bad > $CACHE
47 > echo bad > $CACHE
48 > test -z "$CLEAN" || $CLEAN
48 > test -z "$CLEAN" || $CLEAN
49 > hg $CMD > after
49 > hg $CMD > after
50 > diff -u before after || echo "*** overwrite corruption"
50 > "$RUNTESTDIR/pdiff" before after || echo "*** overwrite corruption"
51 > echo corruption >> $CACHE
51 > echo corruption >> $CACHE
52 > test -z "$CLEAN" || $CLEAN
52 > test -z "$CLEAN" || $CLEAN
53 > hg $CMD > after
53 > hg $CMD > after
54 > diff -u before after || echo "*** append corruption"
54 > "$RUNTESTDIR/pdiff" before after || echo "*** append corruption"
55 > rm $CACHE
55 > rm $CACHE
56 > mkdir $CACHE
56 > mkdir $CACHE
57 > test -z "$CLEAN" || $CLEAN
57 > test -z "$CLEAN" || $CLEAN
58 > hg $CMD > after
58 > hg $CMD > after
59 > diff -u before after || echo "*** read-only corruption"
59 > "$RUNTESTDIR/pdiff" before after || echo "*** read-only corruption"
60 > test -d $CACHE || echo "*** directory clobbered"
60 > test -d $CACHE || echo "*** directory clobbered"
61 > rmdir $CACHE
61 > rmdir $CACHE
62 > test -z "$CLEAN" || $CLEAN
62 > test -z "$CLEAN" || $CLEAN
63 > hg $CMD > after
63 > hg $CMD > after
64 > diff -u before after || echo "*** missing corruption"
64 > "$RUNTESTDIR/pdiff" before after || echo "*** missing corruption"
65 > test -f $CACHE || echo "not rebuilt"
65 > test -f $CACHE || echo "not rebuilt"
66 > }
66 > }
67
67
General Comments 0
You need to be logged in to leave comments. Login now