X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=test%2Fnfaxmltest1.c;fp=test%2Fnfaxmltest1.c;h=04c26ee0da77fd95f5a93dab3975637a3dd5eb89;hp=0000000000000000000000000000000000000000;hb=b9e447111828c6056c35b8a5f11a386e843edb59;hpb=e5db38d08a1f5d4848c4ab6789a491d69a164349 diff --git a/test/nfaxmltest1.c b/test/nfaxmltest1.c new file mode 100644 index 0000000..04c26ee --- /dev/null +++ b/test/nfaxmltest1.c @@ -0,0 +1,58 @@ +/* Copyright (C) 2006, Index Data ApS + * See the file LICENSE for details. + * + * $Id: nfaxmltest1.c,v 1.1 2006-07-05 08:12:48 heikki Exp $ + * + */ + + +#include +#include +#include +#include +#include +#include + +#if HAVE_XML2 +#include + + +void test1() { + char *xmlstr=" " + " " + " foo " + " bar " + "" + ""; + xmlDocPtr doc = xmlParseMemory(xmlstr, strlen(xmlstr)); + YAZ_CHECK(doc); + if (!doc) + return; +} + +int main(int argc, char **argv) +{ + YAZ_CHECK_INIT(argc, argv); + nmem_init (); + + test1(); + + nmem_exit (); + YAZ_CHECK_TERM; +} + +#else +int main(int argc, char **argv) { + YAZ_CHECK_INIT(argc, argv); + YAZ_CHECK_TERM; +} + +#endif + +/* + * Local variables: + * c-basic-offset: 4 + * indent-tabs-mode: nil + * End: + * vim: shiftwidth=4 tabstop=8 expandtab + */