ianh 2003/05/23 13:35:29
Modified: test testxml.c
Log:
fix the return code of the last test to mask the intentional Error.
bug found by Jeff.
Revision Changes Path
1.5 +1 -0 apr-util/test/testxml.c
Index: testxml.c
===================================================================
RCS file: /home/cvs/apr-util/test/testxml.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- testxml.c 1 Jan 2003 00:02:22 -0000 1.4
+++ testxml.c 23 May 2003 20:35:29 -0000 1.5
@@ -245,6 +245,7 @@
"(EXPECTED) This is good.\n",
apr_strerror(rv, errbuf, sizeof(errbuf)),
apr_xml_parser_geterror(parser, errbufXML, sizeof(errbufXML)));
+ rv = APR_SUCCESS; /* reset the return code, as the test is
supposed to get this error */
}
else {
fprintf(stderr, "Expected an error, but didn't get one ;( ");