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
added tests for correct removal of idzbra internal metadate under indexing and retrieval
[idzebra-moved-to-github.git]
/
test
/
api
/
t15.c
diff --git
a/test/api/t15.c
b/test/api/t15.c
index
48e9573
..
ea7f31c
100644
(file)
--- a/
test/api/t15.c
+++ b/
test/api/t15.c
@@
-1,4
+1,4
@@
-/* $Id: t15.c,v 1.1 2006-04-04 00:03:27 adam Exp $
+/* $Id: t15.c,v 1.5 2006-05-30 13:06:35 adam Exp $
Copyright (C) 2004-2005
Index Data ApS
Copyright (C) 2004-2005
Index Data ApS
@@
-20,7
+20,12
@@
Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA.
*/
02111-1307, USA.
*/
+#if HAVE_SYS_STAT_H
+#include <sys/stat.h>
+#endif
+#if HAVE_SYS_TYPES_H
#include <sys/types.h>
#include <sys/types.h>
+#endif
#if HAVE_UNISTD_H
#include <unistd.h>
#endif
#if HAVE_UNISTD_H
#include <unistd.h>
#endif
@@
-59,8
+64,8
@@
static void search_process(ZebraService zs, int iter)
YAZ_CHECK(hits >= hits_max);
if (hits < hits_max)
YAZ_CHECK(hits >= hits_max);
if (hits < hits_max)
- printf("hits=%lld hits_max=%lld\n", hits, hits_max);
- hits_max = hits;
+ printf("i=%d hits=%lld hits_max=%lld\n", i, hits, hits_max);
+ hits_max = hits;
zebra_close(zh);
}
}
zebra_close(zh);
}
}
@@
-80,9
+85,17
@@
static pid_t fork_service(ZebraService zs, int iter,
static void tst(int argc, char **argv)
{
static void tst(int argc, char **argv)
{
- ZebraService zs = tl_start_up("zebra15.cfg", argc, argv);
+ ZebraService zs;
+ ZebraHandle zh;
+
+ mkdir("register", 0775);
+ mkdir("shadow", 0775);
- ZebraHandle zh = zebra_open(zs, 0);
+ zs = tl_start_up("zebra15.cfg", argc, argv);
+ YAZ_CHECK(zs);
+
+ zh = zebra_open(zs, 0);
+ YAZ_CHECK(zh);
YAZ_CHECK(zebra_select_database(zh, "Default") == ZEBRA_OK);
YAZ_CHECK(zebra_select_database(zh, "Default") == ZEBRA_OK);
@@
-117,3
+130,11
@@
static void tst(int argc, char **argv)
}
TL_MAIN
}
TL_MAIN
+/*
+ * Local variables:
+ * c-basic-offset: 4
+ * indent-tabs-mode: nil
+ * End:
+ * vim: shiftwidth=4 tabstop=8 expandtab
+ */
+