projects
/
idzebra-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
section on relation attributes added
[idzebra-moved-to-github.git]
/
test
/
api
/
t13.c
diff --git
a/test/api/t13.c
b/test/api/t13.c
index
a307be1
..
ee5d7f3
100644
(file)
--- a/
test/api/t13.c
+++ b/
test/api/t13.c
@@
-1,4
+1,4
@@
-/* $Id: t13.c,v 1.4 2006-03-25 15:34:07 adam Exp $
+/* $Id: t13.c,v 1.8 2006-05-10 08:13:35 adam Exp $
Copyright (C) 1995-2005
Index Data ApS
Copyright (C) 1995-2005
Index Data ApS
@@
-23,7
+23,7
@@
Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
/** test resources */
#include <stdlib.h>
#include <string.h>
/** test resources */
#include <stdlib.h>
#include <string.h>
-#include <yaz/test.h>
+#include "testlib.h"
#include <idzebra/api.h>
static void tst_res(void)
#include <idzebra/api.h>
static void tst_res(void)
@@
-49,7
+49,7
@@
static void tst_res(void)
zh = zebra_open(zs, 0);
YAZ_CHECK(zh);
zh = zebra_open(zs, 0);
YAZ_CHECK(zh);
- zebra_select_database(zh, "Default");
+ YAZ_CHECK(zebra_select_database(zh, "Default") == ZEBRA_OK);
/* run this a few times so we can see leaks easier */
for (i = 0; i<10; i++)
/* run this a few times so we can see leaks easier */
for (i = 0; i<10; i++)
@@
-98,7
+98,7
@@
static void tst_no_config(void)
zebra_set_resource(zh, "profilePath", "${srcdir:-.}/../../tab");
YAZ_CHECK_EQ(zebra_insert_record(zh /* handle */,
zebra_set_resource(zh, "profilePath", "${srcdir:-.}/../../tab");
YAZ_CHECK_EQ(zebra_insert_record(zh /* handle */,
- "grs.xml" /* record type */,
+ "grs.sgml" /* record type */,
&sysno, 0 /* match */,
0 /* fname */,
xml_buf, strlen(xml_buf),
&sysno, 0 /* match */,
0 /* fname */,
xml_buf, strlen(xml_buf),
@@
-109,11
+109,19
@@
static void tst_no_config(void)
zebra_stop(zs);
}
zebra_stop(zs);
}
-
-int main(int argc, char **argv)
+static void tst(int argc, char **argv)
{
{
- YAZ_CHECK_INIT(argc, argv);
+ tl_start_log(argc, argv);
tst_res();
tst_no_config();
tst_res();
tst_no_config();
- YAZ_CHECK_TERM;
}
}
+
+TL_MAIN
+/*
+ * Local variables:
+ * c-basic-offset: 4
+ * indent-tabs-mode: nil
+ * End:
+ * vim: shiftwidth=4 tabstop=8 expandtab
+ */
+