X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Fmarcxml%2Ft2.c;h=0d5e0702d843a33db4bc4ac6a4b28626806933f8;hb=b9d6210c039df8f2832ac0cee7be1e6dc1833a2f;hp=b282708ed8836348e4bd4c291ab86d2adb1b4e8b;hpb=fac482cae7850747d73866d388c1f64954d700d1;p=idzebra-moved-to-github.git diff --git a/test/marcxml/t2.c b/test/marcxml/t2.c index b282708..0d5e070 100644 --- a/test/marcxml/t2.c +++ b/test/marcxml/t2.c @@ -1,6 +1,6 @@ -/* $Id: t2.c,v 1.1 2004-12-02 12:04:49 adam Exp $ - Copyright (C) 2003,2004 - Index Data Aps +/* $Id: t2.c,v 1.3 2005-01-15 19:38:37 adam Exp $ + Copyright (C) 1995-2005 + Index Data ApS This file is part of the Zebra server. @@ -26,6 +26,7 @@ int main(int argc, char **argv) { ZebraService zs = start_up(0, argc, argv); ZebraHandle zh = zebra_open(zs); + char path[256]; zebra_select_database(zh, "Default"); @@ -34,7 +35,9 @@ int main(int argc, char **argv) zebra_set_resource(zh, "recordType", "grs.marcxml.record"); zebra_begin_trans(zh, 1); - zebra_repository_update(zh, "sample-marc"); + + sprintf(path, "%.200s/sample-marc", get_srcdir()); + zebra_repository_update(zh, path); zebra_end_trans(zh); zebra_commit(zh);