mirror of
https://github.com/catchorg/Catch2.git
synced 2025-08-01 21:05:39 +02:00
Fixed TestMain after recent refactorings
This commit is contained in:
@@ -147,7 +147,7 @@ namespace Catch
|
||||
case modeReport:
|
||||
if( m_args.size() != 1 )
|
||||
return setErrorMode( m_command + " expected one argument, recieved: " + argsAsString() );
|
||||
m_config.setReporterInfo( m_args[0] );
|
||||
m_config.setReporter( m_args[0] );
|
||||
break;
|
||||
case modeOutput:
|
||||
if( m_args.size() == 0 )
|
||||
|
@@ -62,7 +62,7 @@ namespace Catch
|
||||
m_includeWhat( Include::FailedOnly )
|
||||
{}
|
||||
|
||||
void setReporterInfo( const std::string& reporterName )
|
||||
void setReporter( const std::string& reporterName )
|
||||
{
|
||||
if( m_reporter.get() )
|
||||
return setError( "Only one reporter may be specified" );
|
||||
|
Reference in New Issue
Block a user