From 2a259c63e359d85234528e78de18746a13382f34 Mon Sep 17 00:00:00 2001 From: Paul Bakker Date: Thu, 12 May 2016 15:55:37 +0100 Subject: [PATCH] Fox verbose test framework not to duplicate strings if not verbose --- tests/suites/main_test.function | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/suites/main_test.function b/tests/suites/main_test.function index edc9944b6..e8577d22a 100644 --- a/tests/suites/main_test.function +++ b/tests/suites/main_test.function @@ -357,6 +357,13 @@ int main(int argc, const char *argv[]) { if( dep_check( params[i] ) != DEPENDENCY_SUPPORTED ) { + if( 0 == option_verbose ) + { + /* Only one count is needed if not verbose */ + unmet_dep_count++; + break; + } + unmet_dependencies[ unmet_dep_count ] = strdup(params[i]); if( unmet_dependencies[ unmet_dep_count ] == NULL ) {