X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=test%2Fapi%2Ftest_update_record.c;h=8ad409f77baf043d10b1c089be5fcede5e2885fe;hp=b89d1c5a16a21153e60c5a5309d32b2ad97290f3;hb=HEAD;hpb=a66b7d79383ae700f3358731eecfe2aafed0e90d diff --git a/test/api/test_update_record.c b/test/api/test_update_record.c index b89d1c5..8ad409f 100644 --- a/test/api/test_update_record.c +++ b/test/api/test_update_record.c @@ -1,5 +1,5 @@ /* This file is part of the Zebra server. - Copyright (C) 1994-2010 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 @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include "testlib.h" static void create_search_drop(ZebraHandle zh) @@ -35,7 +38,7 @@ static void create_search_drop(ZebraHandle zh) 0 /* fname */, rec, strlen(rec)) == ZEBRA_OK); /* insert really */ - + YAZ_CHECK(zebra_update_record( zh, action_update, 0 /* record type */, @@ -44,7 +47,7 @@ static void create_search_drop(ZebraHandle zh) 0 /* fname */, rec, strlen(rec)) == ZEBRA_OK); /* replace really */ - + YAZ_CHECK(tl_query(zh, "@attr 1=4 some", 1)); zebra_drop_database(zh, "Default");