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
Reformat: delete trailing whitespace
[idzebra-moved-to-github.git]
/
test
/
api
/
test_create_databases.c
diff --git
a/test/api/test_create_databases.c
b/test/api/test_create_databases.c
index
0b898b0
..
9e7e187
100644
(file)
--- a/
test/api/test_create_databases.c
+++ b/
test/api/test_create_databases.c
@@
-1,5
+1,5
@@
/* This file is part of the Zebra server.
/* This file is part of the Zebra server.
- Copyright (C) 1994-2010 Index Data
+ Copyright (C) 1994-2011 Index Data
Zebra is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Zebra is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
@@
-19,6
+19,9
@@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
/** Create many databases */
/** Create many databases */
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
#include "testlib.h"
static void tst(int argc, char **argv)
#include "testlib.h"
static void tst(int argc, char **argv)
@@
-34,7
+37,7
@@
static void tst(int argc, char **argv)
zh = zebra_open(zs, 0);
YAZ_CHECK(zh);
zh = zebra_open(zs, 0);
YAZ_CHECK(zh);
-
+
YAZ_CHECK(zebra_begin_trans (zh, 1) == ZEBRA_OK);
for (i = 0; i<no_db; i++)
YAZ_CHECK(zebra_begin_trans (zh, 1) == ZEBRA_OK);
for (i = 0; i<no_db; i++)
@@
-44,7
+47,7
@@
static void tst(int argc, char **argv)
sprintf(dbstr, "%d", i);
YAZ_CHECK(zebra_select_database(zh, dbstr) == ZEBRA_OK);
sprintf(dbstr, "%d", i);
YAZ_CHECK(zebra_select_database(zh, dbstr) == ZEBRA_OK);
-
+
sprintf(rec_buf, "<gils><title>title %d</title></gils>\n", i);
zebra_add_record (zh, rec_buf, strlen(rec_buf));
sprintf(rec_buf, "<gils><title>title %d</title></gils>\n", i);
zebra_add_record (zh, rec_buf, strlen(rec_buf));