-/* $Id: t13.c,v 1.5 2006-03-25 21:17:40 adam Exp $
- Copyright (C) 1995-2005
+/* $Id: t13.c,v 1.9 2006-08-14 10:40:22 adam Exp $
+ Copyright (C) 1995-2006
Index Data ApS
This file is part of the Zebra server.
for more details.
You should have received a copy of the GNU General Public License
-along with Zebra; see the file LICENSE.zebra. If not, write to the
-Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.
+along with this program; if not, write to the Free Software
+Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
*/
/** test resources */
#include <stdlib.h>
#include <string.h>
-#include <yaz/test.h>
+#include "testlib.h"
#include <idzebra/api.h>
static void tst_res(void)
zh = zebra_open(zs, 0);
YAZ_CHECK(zh);
- zebra_select_database(zh, "Default");
+ YAZ_CHECK(zebra_select_database(zh, "Default") == ZEBRA_OK);
/* run this a few times so we can see leaks easier */
for (i = 0; i<10; i++)
zebra_stop(zs);
}
-
-int main(int argc, char **argv)
+static void tst(int argc, char **argv)
{
- YAZ_CHECK_INIT(argc, argv);
+ tl_start_log(argc, argv);
tst_res();
tst_no_config();
- YAZ_CHECK_TERM;
}
+
+TL_MAIN
+/*
+ * Local variables:
+ * c-basic-offset: 4
+ * indent-tabs-mode: nil
+ * End:
+ * vim: shiftwidth=4 tabstop=8 expandtab
+ */
+