[Expat-checkins] expat/tests minicheck.c,1.5,1.6
Fred L. Drake
fdrake at users.sourceforge.net
Sat Jul 1 16:54:08 CEST 2006
Update of /cvsroot/expat/expat/tests
In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv4630
Modified Files:
minicheck.c
Log Message:
if the test reports a failure message, always display it (it was
ignored); it makes no sense to ever hide this, so we don't worry about
the verbosity setting for this
Index: minicheck.c
===================================================================
RCS file: /cvsroot/expat/expat/tests/minicheck.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- minicheck.c 1 Jul 2006 02:34:50 -0000 1.5
+++ minicheck.c 1 Jul 2006 14:54:06 -0000 1.6
@@ -158,6 +158,12 @@
void
_fail_unless(int condition, const char *file, int line, char *msg)
{
+ /* Always print the error message so it isn't lost. In this case,
+ we have a failure, so there's no reason to be quiet about what
+ it is.
+ */
+ if (msg != NULL)
+ printf("%s", msg);
longjmp(env, 1);
}
More information about the Expat-checkins
mailing list