Fixed issue with reading test names from file

This commit is contained in:
Phil Nash 2014-05-19 18:20:44 +01:00
parent fcf0deb116
commit e8aa0bb19b
2 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ namespace Catch {
while( std::getline( f, line ) ) { while( std::getline( f, line ) ) {
line = trim(line); line = trim(line);
if( !line.empty() && !startsWith( line, "#" ) ) if( !line.empty() && !startsWith( line, "#" ) )
addTestOrTags( config, line ); addTestOrTags( config, "\"" + line + "\"" );
} }
} }

View File

@ -36,10 +36,10 @@ namespace Catch {
visitChar( m_arg[m_pos] ); visitChar( m_arg[m_pos] );
if( m_mode == Name ) if( m_mode == Name )
addPattern<TestSpec::NamePattern>(); addPattern<TestSpec::NamePattern>();
addFilter();
return *this; return *this;
} }
TestSpec testSpec() { TestSpec testSpec() {
addFilter();
return m_testSpec; return m_testSpec;
} }
private: private: