tar: fix "hardlinks to symlinks chown" bug 1519.
[oweals/busybox.git] / testsuite / cmp / cmp-detects-difference
index aa0744487ff2607ac5f7b7335bb4e211840f636e..b9bb628f109291edca4fe1e7e39803521f027542 100644 (file)
@@ -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;