X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Ftst_retrieval.c;h=66c94775a93963a394e84fe74bfcff44a4e6183b;hb=2d165abc74dc0cf021d2e526dc728aa79db77637;hp=cea9da06f81ffad54b4ebe0890076000f13cf218;hpb=d305f63028800611fd05a3bfc54db24e2634d7ad;p=yaz-moved-to-github.git diff --git a/test/tst_retrieval.c b/test/tst_retrieval.c index cea9da0..66c9477 100644 --- a/test/tst_retrieval.c +++ b/test/tst_retrieval.c @@ -2,19 +2,21 @@ * Copyright (C) 2005-2006, Index Data ApS * See the file LICENSE for details. * - * $Id: tst_retrieval.c,v 1.3 2006-05-07 14:48:25 adam Exp $ + * $Id: tst_retrieval.c,v 1.6 2006-07-06 10:17:55 adam Exp $ * */ #include #include #include #include +#include +#include #if HAVE_CONFIG_H #include #endif -#if HAVE_XSLT +#if YAZ_HAVE_XSLT #include #include @@ -117,10 +119,11 @@ static void tst_configure() " Expected 'retrieval'", 0)); YAZ_CHECK(conv_configure_test("" - "", 0, 0)); + "", + "Missing 'syntax' attribute", 0)); YAZ_CHECK(conv_configure_test("" - "\n" + "\n" " " "" "" @@ -136,7 +139,7 @@ static void tst_configure() 0, 0)); YAZ_CHECK(conv_configure_test("" - "" + "" "" "" "" "" "" - "" + "" "" "" "" "" "" @@ -175,6 +178,35 @@ static void tst_configure() YAZ_CHECK(conv_configure_test("" "" + "" + "" + "", + 0, 0)); + + YAZ_CHECK(conv_configure_test("" + "" + "" + "" + "", + "Bad attribute 'backendschema'." + " Use 'backendname' instead", + 0)); + + + YAZ_CHECK(conv_configure_test("" + "" "" @@ -198,7 +230,10 @@ static void tst_configure() int main(int argc, char **argv) { YAZ_CHECK_INIT(argc, argv); -#if HAVE_XSLT + + libxml2_error_to_yazlog(0 /* disable it */, ""); + +#if YAZ_HAVE_XSLT tst_configure(); #endif YAZ_CHECK_TERM;