Skip to content

Commit

Permalink
If --list-extra-info is specified with --list-test-names-only, only o…
Browse files Browse the repository at this point in the history
…utput one list
  • Loading branch information
BMBurstein authored and horenmar committed Jun 25, 2017
1 parent 07c6bfc commit 8a14af7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/internal/catch_list.hpp
Expand Up @@ -174,7 +174,7 @@ namespace Catch {

inline Option<std::size_t> list( Config const& config ) {
Option<std::size_t> listedCount;
if( config.listTests() || config.listExtraInfo() )
if( config.listTests() || ( config.listExtraInfo() && !config.listTestNamesOnly() ) )
listedCount = listedCount.valueOr(0) + listTests( config );
if( config.listTestNamesOnly() )
listedCount = listedCount.valueOr(0) + listTestsNamesOnly( config );
Expand Down

0 comments on commit 8a14af7

Please sign in to comment.