aboutsummaryrefslogtreecommitdiffstats
path: root/patch-test/test
diff options
context:
space:
mode:
Diffstat (limited to 'patch-test/test')
-rwxr-xr-xpatch-test/test4
1 files changed, 2 insertions, 2 deletions
diff --git a/patch-test/test b/patch-test/test
index edc5b78..d7df4bc 100755
--- a/patch-test/test
+++ b/patch-test/test
@@ -69,7 +69,7 @@ garbage ()
{
cd 20
< patch sed 's/^/ /' | $p -o- old > /dev/null 2> tmp
- test $? = 2 && grep 'contains only garbage' < tmp > /dev/null
+ test $? -gt 1 && grep 'contains only garbage' < tmp > /dev/null
report $? "garbage"
rm tmp
cd ..
@@ -1455,7 +1455,7 @@ pflag_excess ()
diff -u a/b/c/old a/b/c/new > patch-u
mv a/b/c/old a/b/c/new .
$fp -p1000 -o- < patch-u > /dev/null
- test $? = 2
+ test $? -gt 1
report $? "pflag_excess -u"
cd ..
rm -r tmp