projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Kill off the old 'tests' stuff. Write a ton of new tests for the
[oweals/busybox.git]
/
testsuite
/
cmp
/
cmp-detects-difference
diff --git
a/testsuite/cmp/cmp-detects-difference
b/testsuite/cmp/cmp-detects-difference
index aa0744487ff2607ac5f7b7335bb4e211840f636e..b9bb628f109291edca4fe1e7e39803521f027542 100644
(file)
--- 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;