From 228ac8e67af8286708bf4ef65622e3d742272d61 Mon Sep 17 00:00:00 2001 From: Heikki Levanto Date: Wed, 26 Apr 2006 16:58:27 +0000 Subject: [PATCH] Simplified outout to keep it on one line, even when verbose --- src/test.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/test.c b/src/test.c index 1fc47c2..f6dd704 100644 --- a/src/test.c +++ b/src/test.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. * - * $Id: test.c,v 1.5 2006-04-20 20:50:51 adam Exp $ + * $Id: test.c,v 1.6 2006-04-26 16:58:27 heikki Exp $ */ /** \file test.c @@ -128,7 +128,10 @@ void yaz_check_eq1(int type, const char *file, int line, { char formstr[2048]; - sprintf(formstr, "%.500s != %.500s\n%d != %d", left, right, lval, rval); + if (type==YAZ_TEST_TYPE_OK) + sprintf(formstr, "%.500s == %.500s ", left, right); + else + sprintf(formstr, "%.500s != %.500s\n %d != %d", left, right, lval,rval); yaz_check_print1(type, file, line, formstr); } @@ -142,12 +145,12 @@ void yaz_check_print1(int type, const char *file, int line, { case YAZ_TEST_TYPE_FAIL: test_failed++; - msg = "failed"; + msg = "FAILED"; if (test_verbose < 1) return; break; case YAZ_TEST_TYPE_OK: - msg = "OK"; + msg = "ok"; if (test_verbose < 3) return; break; -- 1.7.10.4