X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Fapi%2Ftest_sort3.c;h=716fab044eb23b5967ba81ab9d42f2779f8d66eb;hb=250de4ed23a44f5eb3552db317eef0d0fbe3265c;hp=8e7b9822558bee4911e65b2bd058e555b16b0c03;hpb=a030c87bc444608639905eca95e29f84a4f1d991;p=idzebra-moved-to-github.git diff --git a/test/api/test_sort3.c b/test/api/test_sort3.c index 8e7b982..716fab0 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-2011 Index Data + Copyright (C) 2004-2013 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"))