projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bbede51
)
tstlogthread by default prints nothing
author
Adam Dickmeiss
<adam@indexdata.dk>
Sat, 22 Oct 2005 13:27:29 +0000
(13:27 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Sat, 22 Oct 2005 13:27:29 +0000
(13:27 +0000)
test/tstlogthread.c
patch
|
blob
|
history
diff --git
a/test/tstlogthread.c
b/test/tstlogthread.c
index
6241d81
..
1cd934f
100644
(file)
--- a/
test/tstlogthread.c
+++ b/
test/tstlogthread.c
@@
-2,7
+2,7
@@
* Copyright (c) 1998-2005, Index Data.
* See the file LICENSE for details.
*
* Copyright (c) 1998-2005, Index Data.
* See the file LICENSE for details.
*
- * $Id: tstlogthread.c,v 1.2 2005-09-08 13:51:27 adam Exp $
+ * $Id: tstlogthread.c,v 1.3 2005-10-22 13:27:29 adam Exp $
*/
#if HAVE_CONFIG_H
*/
#if HAVE_CONFIG_H
@@
-60,6
+60,7
@@
int main(int argc, char **argv)
char *arg;
int ret;
char *arg;
int ret;
+ /* t_test is only invoked if a non-option arg is given .. */
while ((ret = options("v:l:", argv, argc, &arg)) != -2)
{
switch (ret)
while ((ret = options("v:l:", argv, argc, &arg)) != -2)
{
switch (ret)
@@
-70,11
+71,13
@@
int main(int argc, char **argv)
case 'l':
yaz_log_init_file(arg);
break;
case 'l':
yaz_log_init_file(arg);
break;
+ case 0:
+ t_test();
+ break;
default:
default:
- return 1;
+ exit(1);
}
}
}
}
- t_test();
return 0;
}
/*
return 0;
}
/*