Rotating logfile if exceeding a gigabyte
[yaz-moved-to-github.git] / zoom / zoomtst7.c
index 3dfe4b4..515c062 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: zoomtst7.c,v 1.10 2002-05-21 08:36:03 adam Exp $
+ * $Id: zoomtst7.c,v 1.12 2002-09-24 08:00:50 adam Exp $
  *
  * API test..
  */
@@ -10,7 +10,7 @@
 
 #include <yaz/xmalloc.h>
 #include <yaz/nmem.h>
-
+#include <yaz/log.h>
 #include <yaz/zoom.h>
 
 int main(int argc, char **argv)
@@ -138,9 +138,6 @@ int main(int argc, char **argv)
            for (j = 0; j < 10; j++)
            {
                ZOOM_resultset_records (r[j], 0, 0, 1);
-               if (block > 0)
-                   while (ZOOM_event (1, &z))
-                       ;
            }
            for (j = 0; j < 10; j++)
                ZOOM_resultset_destroy (r[j]);
@@ -179,9 +176,10 @@ int main(int argc, char **argv)
 
     }
     ZOOM_options_destroy (o);
-    xmalloc_trav("");
+    yaz_log_init_level(LOG_ALL|LOG_MALLOC);
+    xmalloc_trav("1");
     nmem_exit();
-    xmalloc_trav("");
+    xmalloc_trav("2");
     exit (0);
 }