[BusyBox-cvs] busybox/testsuite/cmp cmp-detects-difference,1.2,1.3

Erik Andersen andersen at busybox.net
Tue Apr 6 11:09:50 UTC 2004


Update of /var/cvs/busybox/testsuite/cmp
In directory nail:/tmp/cvs-serv13250/testsuite/cmp

Modified Files:
	cmp-detects-difference 
Log Message:
Kill off the old 'tests' stuff.  Write a ton of new tests for the
'testsuite' dir.  Fix a bunch of broken tests.  Fix the testsuite
'runtest' script so it actually reports all failures and provides
meaningful feedback.
 -Erik


Index: cmp-detects-difference
===================================================================
RCS file: /var/cvs/busybox/testsuite/cmp/cmp-detects-difference,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- a/cmp-detects-difference	2 Jan 2002 20:45:40 -0000	1.2
+++ b/cmp-detects-difference	6 Apr 2004 11:09:48 -0000	1.3
@@ -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;




More information about the busybox-cvs mailing list