X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=test%2Fsort%2Fsort1.c;h=661570d0f9aa871ba1fb80cecac7f337d316b29d;hp=3ce5353bcae220b386ef4cf945667097547dc0f3;hb=89d3a004b7c651fd5673abfc192e1472dc4d4197;hpb=1f1106ca4cb980d93dec90480e25df75ddd59c4d diff --git a/test/sort/sort1.c b/test/sort/sort1.c index 3ce5353..661570d 100644 --- a/test/sort/sort1.c +++ b/test/sort/sort1.c @@ -1,5 +1,5 @@ -/* $Id: sort1.c,v 1.4 2005-05-04 10:50:09 adam Exp $ - Copyright (C) 1995-2005 +/* $Id: sort1.c,v 1.13 2007-01-15 15:10:24 adam Exp $ + Copyright (C) 1995-2007 Index Data ApS This file is part of the Zebra server. @@ -15,84 +15,65 @@ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License -along with Zebra; see the file LICENSE.zebra. If not, write to the -Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +along with this program; if not, write to the Free Software +Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ -#include #include "../api/testlib.h" -static void sort(ZebraHandle zh, const char *query, zint hits, zint *exp) -{ - ZebraMetaRecord *recs; - zint i; - int errs = 0; - - assert(query); - do_query(__LINE__, zh, query, hits); - - recs = zebra_meta_records_create_range (zh, "rsetname", 1, 4); - if (!recs) - { - fprintf(stderr, "recs==0\n"); - exit(1); - } - for (i = 0; i