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_zebra_fork.c
diff --git
a/test/api/test_zebra_fork.c
b/test/api/test_zebra_fork.c
index
281ff1d
..
516afb4
100644
(file)
--- a/
test/api/test_zebra_fork.c
+++ b/
test/api/test_zebra_fork.c
@@
-61,11
+61,11
@@
static void search_process(ZebraService zs, int iter)
for (i = 0; i<iter; i++)
{
ZebraHandle zh = zebra_open(zs, 0);
for (i = 0; i<iter; i++)
{
ZebraHandle zh = zebra_open(zs, 0);
- zint hits;
+ zint hits;
ZEBRA_RES res = zebra_search_PQF(zh, "@attr 1=4 some", "default",
&hits);
YAZ_CHECK(res == ZEBRA_OK);
ZEBRA_RES res = zebra_search_PQF(zh, "@attr 1=4 some", "default",
&hits);
YAZ_CHECK(res == ZEBRA_OK);
-
+
YAZ_CHECK(hits >= hits_max);
if (hits < hits_max)
printf("i=%d hits=%lld hits_max=%lld\n", i, hits, hits_max);
YAZ_CHECK(hits >= hits_max);
if (hits < hits_max)
printf("i=%d hits=%lld hits_max=%lld\n", i, hits, hits_max);
@@
-82,7
+82,7
@@
static pid_t fork_service(ZebraService zs, int iter,
YAZ_CHECK(pid != -1);
if (pid)
return pid;
YAZ_CHECK(pid != -1);
if (pid)
return pid;
-
+
(*f)(zs, iter);
YAZ_CHECK_TERM;
}
(*f)(zs, iter);
YAZ_CHECK_TERM;
}
@@
-91,7
+91,7
@@
static void tst(int argc, char **argv)
{
ZebraService zs;
ZebraHandle zh;
{
ZebraService zs;
ZebraHandle zh;
-
+
mkdir("register", 0775);
mkdir("shadow", 0775);
mkdir("register", 0775);
mkdir("shadow", 0775);