/*
- * $Id: testclient.c,v 1.6 2002-11-11 15:19:25 heikki Exp $
+ * $Id: testclient.c,v 1.7 2002-11-11 15:41:19 heikki Exp $
*
* Z39.50 client specifically for Zebra testing.
*/
int check_count = -1;
int exit_code = 0;
- while ((ret = options("d:n:o:f:c:e:", argv, argc, &arg)) != -2)
+ while ((ret = options("d:n:o:f:c:", argv, argc, &arg)) != -2)
{
switch (ret)
{
case 'c':
check_count = atoi(arg);
break;
- case 'e':
- expected_hits = atoi(arg);
- break;
default:
printf ("%s: unknown option %s\n", prog, arg);
printf ("usage:\n%s [options] target query \n", prog);
{
printf ("Result count: %d\n", ZOOM_resultset_size(r));
if (check_count != -1 && check_count != ZOOM_resultset_size(r))
- exit_code = 10;
- if ((expected_hits!=-1) && (ZOOM_resultset_size(r) != expected_hits))
{
printf("Wrong number of hits, expected %d, got %d\n",
expected_hits, ZOOM_resultset_size(r) );
sleep(delay_sec);
ZOOM_resultset_destroy (r);
ZOOM_connection_destroy (z);
- exit (0);
+ exit (exit_code);
}