Fix tl_close_call (bug introduced in previous commit)
[idzebra-moved-to-github.git] / test / api / t15.c
index cfd9eea..bc80bfa 100644 (file)
@@ -1,5 +1,5 @@
-/* $Id: t15.c,v 1.3 2006-04-05 02:52:31 adam Exp $
-   Copyright (C) 2004-2005
+/* $Id: t15.c,v 1.6 2006-08-10 08:44:45 adam Exp $
+   Copyright (C) 2004-2006
    Index Data ApS
 
 This file is part of the Zebra server.
@@ -64,8 +64,8 @@ static void search_process(ZebraService zs, int iter)
        
        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);
     }
 }
@@ -126,7 +126,15 @@ static void tst(int argc, char **argv)
     }
 #endif
 #endif
-
+    YAZ_CHECK(tl_close_down(0, zs));
 }
 
 TL_MAIN
+/*
+ * Local variables:
+ * c-basic-offset: 4
+ * indent-tabs-mode: nil
+ * End:
+ * vim: shiftwidth=4 tabstop=8 expandtab
+ */
+