X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Ftstlog.c;h=0d7338e5f463c729f10b26e763d3060786a9ea8c;hb=7e156f9a105b894b600c78d0b0a55224ae9b9793;hp=c41089b64707c772ae65b76a637c6763f635e5a8;hpb=04e7f1b09e302ca5862d752e63e2a6e396c82047;p=yaz-moved-to-github.git diff --git a/test/tstlog.c b/test/tstlog.c index c41089b..0d7338e 100644 --- a/test/tstlog.c +++ b/test/tstlog.c @@ -2,13 +2,16 @@ * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. * - * $Id: tstlog.c,v 1.7 2005-09-09 10:20:14 adam Exp $ + * $Id: tstlog.c,v 1.8 2005-09-16 21:14:38 adam Exp $ * */ #include #include #include #include +#if HAVE_UNISTD_H +#include +#endif int main(int argc, char **argv) { @@ -16,8 +19,9 @@ int main(int argc, char **argv) int i, ret; int level = YLOG_LOG; int number = 1; + unsigned int wait_between_log = 0; - while ((ret = options("f:v:l:m:n:s:", argv, argc, &arg)) != -2) + while ((ret = options("f:v:l:m:n:s:w:", argv, argc, &arg)) != -2) { switch (ret) { @@ -39,14 +43,23 @@ int main(int argc, char **argv) case 'm': level = yaz_log_module_level(arg); break; + case 'w': + wait_between_log = atoi(arg); + break; case 0: for (i = 0; i