[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[lvm-devel] LVM2/test not.c



CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	mornfall sourceware org	2010-05-12 05:55:42

Modified files:
	test           : not.c 

Log message:
	The "should" testing utility should actually only give a warning when the
	command fails.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/not.c.diff?cvsroot=lvm2&r1=1.3&r2=1.4

--- LVM2/test/not.c	2010/04/30 14:33:39	1.3
+++ LVM2/test/not.c	2010/05/12 05:55:42	1.4
@@ -8,7 +8,8 @@
 	if (!strcmp(cmd, "not"))
 		return !status;
 	if (!strcmp(cmd, "should")) {
-		fprintf(stderr, "TEST WARNING: Ignoring command failure.\n");
+		if (status)
+			fprintf(stderr, "TEST WARNING: Ignoring command failure.\n");
 		return 0;
 	}
 	return 6;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]