X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Ftst_retrieval.c;h=32e9782952b6f5230733325447f9ca5f34de2e1d;hb=51755f9b44a6ab87089c169cb7c64b240833a909;hp=aecb773808a8e8931678a97e1c3ae73e538d88ec;hpb=0de95154d8512ee46d6b706fe019f8d1ffc18827;p=yaz-moved-to-github.git diff --git a/test/tst_retrieval.c b/test/tst_retrieval.c index aecb773..32e9782 100644 --- a/test/tst_retrieval.c +++ b/test/tst_retrieval.c @@ -2,13 +2,15 @@ * Copyright (C) 2005-2006, Index Data ApS * See the file LICENSE for details. * - * $Id: tst_retrieval.c,v 1.2 2006-05-05 18:37:08 adam Exp $ + * $Id: tst_retrieval.c,v 1.5 2006-05-09 13:39:47 adam Exp $ * */ #include #include #include #include +#include +#include #if HAVE_CONFIG_H #include @@ -116,8 +118,13 @@ static void tst_configure() "Bad element 'bad'." " Expected 'retrieval'", 0)); + YAZ_CHECK(conv_configure_test("" + "", + "Missing 'syntax' attribute", 0)); + YAZ_CHECK(conv_configure_test("" - "" + "\n" + " " "" "" "" - "" + "" "" "" "" "" "" - "" + "" "" "" "" "", 0, 0)); + + + YAZ_CHECK(conv_configure_test("" + "" + "" + "" + "", + 0, 0)); + + YAZ_CHECK(conv_configure_test("" + "" + "" + "" + "", + 0, 0)); + + YAZ_CHECK(conv_configure_test("" + "" + "" + "" + "", + "Bad attribute 'backendschema'." + " Use 'backendname' instead", + 0)); + + + YAZ_CHECK(conv_configure_test("" + "" + "" + "" + "", + "Bad syntax 'unknown_synt'", 0)); + + YAZ_CHECK(conv_configure_test("" + "" + "" + "" + "", + "Bad backendsyntax 'unknown_synt'", 0)); + } #endif @@ -163,6 +230,9 @@ static void tst_configure() int main(int argc, char **argv) { YAZ_CHECK_INIT(argc, argv); + + libxml2_error_to_yazlog(0 /* disable it */, ""); + #if HAVE_XSLT tst_configure(); #endif