changed xslt filter to expand config file and xslt stylesheet file names according...
[idzebra-moved-to-github.git] / test / api / t0.c
index 51c92d6..8562208 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: t0.c,v 1.1 2006-02-21 15:23:11 adam Exp $
+/* $Id: t0.c,v 1.3 2006-03-31 15:58:05 adam Exp $
    Copyright (C) 1995-2005
    Index Data ApS
 
@@ -22,17 +22,12 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 
 /** t0 - test zebra_start .. */
 
-#include <stdlib.h>
 #include "testlib.h"
-       
-int main(int argc, char **argv)
-{
-    ZebraService zs;
-
-    start_log(argc, argv);
 
-    zs = zebra_start("xxxxpoiasdfasfd.cfg");
-    if (zs)
-       exit(1);
-    return 0;
+static void tst(int argc, char **argv)
+{
+    tl_start_log(argc, argv);
+    YAZ_CHECK(!zebra_start("xxxxpoiasdfasfd.cfg")); /* should fail */
 }
+
+TL_MAIN