X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Fapi%2Ftest_resources.c;h=6c157e24a3ceebee6fb884f010f246bd99dd64ba;hb=8a0144a3925311102133d62ac6258ace8d7187eb;hp=bf0eb88c0aed3767d6931bb156945148023a8ae8;hpb=ac13dceecd5f75669820819575daf88e0add5c8d;p=idzebra-moved-to-github.git diff --git a/test/api/test_resources.c b/test/api/test_resources.c index bf0eb88..6c157e2 100644 --- a/test/api/test_resources.c +++ b/test/api/test_resources.c @@ -1,5 +1,5 @@ /* This file is part of the Zebra server. - Copyright (C) 1994-2011 Index Data + Copyright (C) Index Data Zebra is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -42,10 +42,10 @@ static void tst_res(void) temp_res = res_open(0, 0); /* completely empty */ YAZ_CHECK(temp_res); - + zs = zebra_start_res(0, default_res, temp_res); YAZ_CHECK(zs); - + zh = zebra_open(zs, 0); YAZ_CHECK(zh); @@ -65,10 +65,10 @@ static void tst_res(void) /* we should find the name1 from temp_res */ val = zebra_get_resource(zh, "name1", 0); YAZ_CHECK(val && !strcmp(val, "value2")); - + val = zebra_get_resource(zh, "name4", 0); YAZ_CHECK(val && !strcmp(val, "value4")); - + res_clear(temp_res); } zebra_close(zh); @@ -94,9 +94,9 @@ static void tst_no_config(void) YAZ_CHECK_EQ(zebra_select_database(zh, "Default"), ZEBRA_OK); YAZ_CHECK_EQ(zebra_init(zh), ZEBRA_OK); - + zebra_set_resource(zh, "profilePath", "${srcdir:-.}/../../tab"); - + YAZ_CHECK_EQ(zebra_update_record(zh /* handle */, action_insert, "grs.sgml" /* record type */,