From bac10d6aa3d54d94ed23f063dddebfb6725bf032 Mon Sep 17 00:00:00 2001 From: Petr Rockai Date: Mon, 7 Nov 2011 17:02:56 +0000 Subject: [PATCH] Do not repeat a failed test's output when VERBOSE is in effect. --- test/lib/harness.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/lib/harness.c b/test/lib/harness.c index 31f451a60..f1300d7a0 100644 --- a/test/lib/harness.c +++ b/test/lib/harness.c @@ -180,9 +180,11 @@ static void failed(int i, char *f, int st) { return; } printf("FAILED.\n"); - printf("-- FAILED %s ------------------------------------\n", f); - dump(); - printf("-- FAILED %s (end) ------------------------------\n", f); + if (!verbose) { + printf("-- FAILED %s ------------------------------------\n", f); + dump(); + printf("-- FAILED %s (end) ------------------------------\n", f); + } } static void run(int i, char *f) { -- 2.43.5