Fox verbose test framework not to duplicate strings if not verbose

This commit is contained in:
Paul Bakker 2016-05-12 15:55:37 +01:00 committed by Simon Butcher
parent a30a72f80f
commit 26b60bf7d1

View file

@ -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 )
{