summaryrefslogtreecommitdiff
path: root/testsuite/cmp
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/cmp')
-rw-r--r--testsuite/cmp/cmp-detects-difference8
1 files changed, 7 insertions, 1 deletions
diff --git a/testsuite/cmp/cmp-detects-difference b/testsuite/cmp/cmp-detects-difference
index aa07444..b9bb628 100644
--- a/testsuite/cmp/cmp-detects-difference
+++ b/testsuite/cmp/cmp-detects-difference
@@ -1,3 +1,9 @@
echo foo >foo
echo bar >bar
-! busybox cmp -s foo bar
+set +e
+busybox cmp -s foo bar
+if [ $? != 0 ] ; then
+ exit 0;
+fi
+
+exit 1;