Fixed TestMain after recent refactorings

This commit is contained in:
Phil Nash
2011-01-05 21:07:20 +00:00
parent 4220fb6267
commit b87a16d11a
3 changed files with 8 additions and 12 deletions

View File

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

View File

@@ -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" );