From b9e447111828c6056c35b8a5f11a386e843edb59 Mon Sep 17 00:00:00 2001 From: Heikki Levanto Date: Wed, 5 Jul 2006 08:12:48 +0000 Subject: [PATCH] Added the (empty) test file --- test/nfaxmltest1.c | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 test/nfaxmltest1.c 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 + */ -- 1.7.10.4