X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Fapi%2Ftest_trunc.c;h=aaf4a8ca13461015eb413452eb360160d8129697;hb=5403eea61e14f91b1863c151cfa0f60561ca95ec;hp=6ae5c7ae30d8b8006fad9d96f436c1cd17359e33;hpb=965cbd297cf8de73cfe01d55983b8161ae7cf67e;p=idzebra-moved-to-github.git diff --git a/test/api/test_trunc.c b/test/api/test_trunc.c index 6ae5c7a..aaf4a8c 100644 --- a/test/api/test_trunc.c +++ b/test/api/test_trunc.c @@ -1,5 +1,5 @@ /* This file is part of the Zebra server. - Copyright (C) 1995-2008 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 @@ -19,6 +19,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA /* Insert a number of randomly generated words and truncate */ +#if HAVE_CONFIG_H +#include +#endif #include "testlib.h" static void tst(int argc, char **argv) @@ -28,7 +31,7 @@ static void tst(int argc, char **argv) ZebraHandle zh = zebra_open(zs, 0); srand(17); - + YAZ_CHECK(zebra_select_database(zh, "Default") == ZEBRA_OK); zebra_init(zh); zebra_close(zh); @@ -41,7 +44,7 @@ static void tst(int argc, char **argv) YAZ_CHECK(zh); YAZ_CHECK(zebra_select_database(zh, "Default") == ZEBRA_OK); - + YAZ_CHECK(zebra_begin_trans (zh, 1) == ZEBRA_OK); for (l = 0; l<100; l++) @@ -89,6 +92,7 @@ TL_MAIN /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab