X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Ftstxmlquery.c;fp=test%2Ftstxmlquery.c;h=dd6729e2138ed8b8b101ecde7ccab71b032b8274;hb=7a025b4322380d71b3b2abb1843fcbf622ff4b56;hp=625d5e2d2d643d432aa4fa747e0bffd7eacb2040;hpb=dcc6cbe2a1c328c1d59f7ff350e7cd9e8a3b5a85;p=yaz-moved-to-github.git diff --git a/test/tstxmlquery.c b/test/tstxmlquery.c index 625d5e2..dd6729e 100644 --- a/test/tstxmlquery.c +++ b/test/tstxmlquery.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. * - * $Id: tstxmlquery.c,v 1.6 2006-01-30 14:02:07 adam Exp $ + * $Id: tstxmlquery.c,v 1.7 2006-01-31 11:01:26 adam Exp $ */ #include @@ -45,9 +45,9 @@ enum pqf2xml_status pqf2xml_text(const char *pqf, const char *expect_xml) status = PQF_FAILED; else { - status = QUERY2XML_FAILED; #if HAVE_XML2 xmlDocPtr doc = 0; + yaz_rpnquery2xml(rpn, &doc); if (!doc) @@ -71,6 +71,8 @@ enum pqf2xml_status pqf2xml_text(const char *pqf, const char *expect_xml) } xmlFreeDoc(doc); } +#else + status = QUERY2XML_FAILED; #endif } odr_destroy(odr);