X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Fsort%2Fsort1.c;h=76c838e3fa0125481cef2a44ca79b7d6c18d2ab1;hb=a9e90f22d2cefbafc9d490a03a3bc7d1b75d57ee;hp=6b09f259998d88fe5421bbe146cca93809b99563;hpb=8f170520029ded9cf0b7600f5ae07ecf73a9a34d;p=idzebra-moved-to-github.git diff --git a/test/sort/sort1.c b/test/sort/sort1.c index 6b09f25..76c838e 100644 --- a/test/sort/sort1.c +++ b/test/sort/sort1.c @@ -1,6 +1,6 @@ -/* $Id: sort1.c,v 1.1 2004-12-02 15:02:52 adam Exp $ - Copyright (C) 2003,2004 - Index Data Aps +/* $Id: sort1.c,v 1.3 2005-01-15 19:38:39 adam Exp $ + Copyright (C) 1995-2005 + Index Data ApS This file is part of the Zebra server. @@ -28,15 +28,18 @@ int main(int argc, char **argv) ZebraHandle zh = zebra_open(zs); ZebraMetaRecord *recs; char path[256]; - int errs = 0; + int i, errs = 0; zebra_select_database(zh, "Default"); zebra_init(zh); zebra_begin_trans(zh, 1); - sprintf(path, "%.200s/recs", get_srcdir()); - zebra_repository_update(zh, path); + for (i = 1; i <= 4; i++) + { + sprintf(path, "%.200s/rec%d.xml", get_srcdir(), i); + zebra_repository_update(zh, path); + } zebra_end_trans(zh); zebra_commit(zh);