X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=test%2Ftst_record_conv.c;h=78463733793ef2c4a39c76dd814c8bc7d6bd64bc;hp=c4f09c40f391d9847ef7aae0d738e3be5995d96a;hb=0b20fc2dcafe8d56501a3b34626b3174c60eefb5;hpb=96a07bee0a27a24ba02657132fbe702f6c7beb5d diff --git a/test/tst_record_conv.c b/test/tst_record_conv.c index c4f09c4..7846373 100644 --- a/test/tst_record_conv.c +++ b/test/tst_record_conv.c @@ -2,7 +2,7 @@ * Copyright (C) 2005-2006, Index Data ApS * See the file LICENSE for details. * - * $Id: tst_record_conv.c,v 1.7 2006-05-07 17:45:41 adam Exp $ + * $Id: tst_record_conv.c,v 1.8 2006-05-08 10:16:47 adam Exp $ * */ #include @@ -16,7 +16,7 @@ #include #endif -#if HAVE_XSLT +#if HAVE_XML2 #include #include @@ -113,6 +113,7 @@ static void tst_configure() YAZ_CHECK(conv_configure_test("", "Bad element 'bad'." "Expected marc, xslt, ..", 0)); +#if HAVE_XSLT YAZ_CHECK(conv_configure_test("" "" "" "", 0, 0)); +#else + YAZ_CHECK(conv_configure_test("" + "" + "", + "xslt unsupported." + " YAZ compiled without XSLT support", 0)); +#endif } static int conv_convert_test(yaz_record_conv_t p, @@ -287,8 +295,10 @@ int main(int argc, char **argv) { YAZ_CHECK_INIT(argc, argv); libxml2_error_to_yazlog(0 /* disable log */, 0); -#if HAVE_XSLT +#if HAVE_XML2 tst_configure(); +#endif +#if HAVE_XSLT tst_convert(); #endif YAZ_CHECK_TERM;