LVM2/test not.c
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: mornfall at 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
test/not.c +2 -1
@@ -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 ;