From: Heikki Levanto Date: Wed, 5 Jul 2006 08:12:48 +0000 (+0000) Subject: Added the (empty) test file X-Git-Tag: YAZ.2.1.26~50 X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=commitdiff_plain;h=b9e447111828c6056c35b8a5f11a386e843edb59 Added the (empty) test file --- 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 + */