From f646c512e99032cf4545be1ffcfd2a17323fb586 Mon Sep 17 00:00:00 2001 From: "W. Felix Handte" Date: Thu, 5 Apr 2018 18:08:13 -0400 Subject: [PATCH] Print Failure Message in Framebench --- tests/framebench.c | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/tests/framebench.c b/tests/framebench.c index 01e30b3..048df34 100644 --- a/tests/framebench.c +++ b/tests/framebench.c @@ -226,7 +226,14 @@ uint64_t bench( params->isample = params->ibuf + ((i * 2654435761U) % ((params->num_ibuf - 1) * params->isize)); } o = fun(params); - if (!o) return 0; + if (!o) { + fprintf( + stderr, + "%-19s: %-30s @ lvl %2d: %8ld B: FAILED!\n", + params->run_name, bench_name, params->clevel, + params->isize); + return 0; + } osize += o; } @@ -238,7 +245,14 @@ uint64_t bench( } o = checkfun(params, o); - if (!o) return 0; + if (!o) { + fprintf( + stderr, + "%-19s: %-30s @ lvl %2d: %8ld B: CHECK FAILED!\n", + params->run_name, bench_name, params->clevel, + params->isize); + return 0; + } fprintf( stderr,