diff options
Diffstat (limited to 'testsuite/cmp/cmp-detects-difference')
-rw-r--r-- | testsuite/cmp/cmp-detects-difference | 8 |
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; |