X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=test%2Fapi%2Ftest_sort3.c;h=0ced9c235460b1283a895fd583d05f65d9fea379;hp=48e9d0172bb84a4f863143365441c7965cb4f260;hb=aeea139423b8eaf28a4de53b3d7b2ad1f22284e7;hpb=6a0f9234f945bc4956e2bcef75f715661a9eba9a diff --git a/test/api/test_sort3.c b/test/api/test_sort3.c index 48e9d01..0ced9c2 100644 --- a/test/api/test_sort3.c +++ b/test/api/test_sort3.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,10 +17,13 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -/** \file +/** \file \brief sort using various sortindex types */ +#if HAVE_CONFIG_H +#include +#endif #include #include "testlib.h" @@ -32,7 +35,7 @@ const char *myrec[] = { "\n", /* 3 */ - "\n" + "\n" " My x title\n" " B\n" "\n", @@ -43,7 +46,7 @@ const char *myrec[] = { " A\n" "\n" , 0} ; - + static void tst_sortindex(int argc, char **argv, const char *type) { zint ids[5]; @@ -55,7 +58,7 @@ static void tst_sortindex(int argc, char **argv, const char *type) res_set(res, "sortindex", type); zh = zebra_open(zs, res); - + YAZ_CHECK(tl_init_data(zh, myrec)); if (strcmp(type, "m"))