-/* $Id: testlib.c,v 1.41 2006-11-22 14:06:53 adam Exp $
- Copyright (C) 1995-2006
+/* $Id: testlib.c,v 1.45 2007-04-18 11:37:39 adam Exp $
+ Copyright (C) 1995-2007
Index Data ApS
This file is part of the Zebra server.
#include <assert.h>
#include <yaz/log.h>
#include <yaz/pquery.h>
+#include <yaz/oid_db.h>
#include <idzebra/api.h>
#include "testlib.h"
/*
* tl_start_up : do common start things, and a zebra_start
- * - nmem_init
* - build the name of logfile from argv[0], and open it
* if no argv passed, do not open a log
* - read zebra.cfg from env var srcdir if it exists; otherwise current dir
setrlimit(RLIMIT_CPU, &rlim);
#endif
#endif
- nmem_init();
return tl_zebra_start(cfgname);
}
if (zs)
zebra_stop(zs);
- nmem_exit();
xmalloc_trav("x");
return 1;
}
odr_output = odr_createmem(ODR_ENCODE);
rc = zebra_records_retrieve(zh, odr_output, setname, 0,
- VAL_TEXT_XML, exphits, retrievalRecord);
+ yaz_oid_recsyn_xml, exphits, retrievalRecord);
if (rc != ZEBRA_OK)
ret = 0;
else if (!strstr(retrievalRecord[0].buf, firstrec))