X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;ds=sidebyside;f=test%2Fapi%2Ftest_update_record.c;h=90cce8ee65b1f5d946635e64f181d799ca84447c;hb=aeea139423b8eaf28a4de53b3d7b2ad1f22284e7;hp=ff17e153902eb6f8b10e54abd927a5808995aee0;hpb=89d16cf15eda0e4802d18b8ad09bd3653508ebfc;p=idzebra-moved-to-github.git diff --git a/test/api/test_update_record.c b/test/api/test_update_record.c index ff17e15..90cce8e 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-2009 Index Data + Copyright (C) 1994-2011 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"); @@ -73,6 +76,7 @@ TL_MAIN /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab