projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More wrbuf_buf woes.
[yaz-moved-to-github.git]
/
test
/
tstsoap1.c
diff --git
a/test/tstsoap1.c
b/test/tstsoap1.c
index
85a9177
..
11ad088
100644
(file)
--- a/
test/tstsoap1.c
+++ b/
test/tstsoap1.c
@@
-1,29
+1,32
@@
/*
/*
- * Copyright (C) 1995-2005, Index Data ApS
+ * Copyright (C) 1995-2007, Index Data ApS
* See the file LICENSE for details.
*
* See the file LICENSE for details.
*
- * $Id: tstsoap1.c,v 1.5 2006-01-29 21:59:13 adam Exp $
+ * $Id: tstsoap1.c,v 1.9 2007-01-03 08:42:16 adam Exp $
*/
#include <stdlib.h>
*/
#include <stdlib.h>
-#if HAVE_XML2
+#if YAZ_HAVE_XML2
#include <libxml/parser.h>
#endif
#include <yaz/test.h>
#include <libxml/parser.h>
#endif
#include <yaz/test.h>
-void tst()
+void tst(void)
{
{
-#if HAVE_XML2
+#if YAZ_HAVE_XML2
xmlChar *buf_out;
int len_out;
xmlChar *buf_out;
int len_out;
- xmlDocPtr doc = xmlNewDoc(BAD_CAST "1.0");
- YAZ_CHECK(doc);
+ xmlDocPtr doc;
+ xmlNodePtr top;
#if 0
const char *val = "jordbær"; /* makes xmlDocDumpMemory hang .. */
#else
const char *val = "jordbaer"; /* OK */
#endif
#if 0
const char *val = "jordbær"; /* makes xmlDocDumpMemory hang .. */
#else
const char *val = "jordbaer"; /* OK */
#endif
- xmlNodePtr top = xmlNewNode(0, BAD_CAST "top");
+ doc = xmlNewDoc(BAD_CAST "1.0");
+ YAZ_CHECK(doc);
+
+ top = xmlNewNode(0, BAD_CAST "top");
YAZ_CHECK(top);
xmlNewTextChild(top, 0, BAD_CAST "sub", BAD_CAST val);
YAZ_CHECK(top);
xmlNewTextChild(top, 0, BAD_CAST "sub", BAD_CAST val);
@@
-35,14
+38,14
@@
void tst()
#endif
#endif
-/* HAVE_XML2 */
+/* YAZ_HAVE_XML2 */
#endif
}
int main(int argc, char **argv)
{
YAZ_CHECK_INIT(argc, argv);
#endif
}
int main(int argc, char **argv)
{
YAZ_CHECK_INIT(argc, argv);
-#if HAVE_XML2
+#if YAZ_HAVE_XML2
LIBXML_TEST_VERSION;
#endif
tst();
LIBXML_TEST_VERSION;
#endif
tst();