aboutsummaryrefslogtreecommitdiffstats
path: root/patch-test
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-03-23 13:41:07 +0100
committerMattias Andrée <maandree@kth.se>2016-03-23 13:41:07 +0100
commit5a225172777eda244a70cde70a877221f5a6252f (patch)
treeb23c2d500f29ccd7fba80c73239623319549e9f3 /patch-test
parentinitial import (diff)
downloadbase-util-tests-5a225172777eda244a70cde70a877221f5a6252f.tar.gz
base-util-tests-5a225172777eda244a70cde70a877221f5a6252f.tar.bz2
base-util-tests-5a225172777eda244a70cde70a877221f5a6252f.tar.xz
patch-test: do not test that exit value is 2, test that is is greater than 1
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-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