Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorPhil Nash2014-05-19 18:20:44 +0100
committerPhil Nash2014-05-19 18:20:44 +0100
commite8aa0bb19beef911789953c250b5eaa6571875cf (patch)
treed9db07f79aafc1afda9a78d632b7915617e234ab /include
parentfcf0deb116125a0b314cb52f461339a3ed30ec2b (diff)
downloadcatch3-e8aa0bb19beef911789953c250b5eaa6571875cf.tar.gz
Fixed issue with reading test names from file
Diffstat (limited to 'include')
-rw-r--r--include/internal/catch_commandline.hpp2
-rw-r--r--include/internal/catch_test_spec_parser.hpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/internal/catch_commandline.hpp b/include/internal/catch_commandline.hpp
index 2614e4d5..05e9f46b 100644
--- a/include/internal/catch_commandline.hpp
+++ b/include/internal/catch_commandline.hpp
@@ -49,7 +49,7 @@ namespace Catch {
while( std::getline( f, line ) ) {
line = trim(line);
if( !line.empty() && !startsWith( line, "#" ) )
- addTestOrTags( config, line );
+ addTestOrTags( config, "\"" + line + "\"" );
}
}
diff --git a/include/internal/catch_test_spec_parser.hpp b/include/internal/catch_test_spec_parser.hpp
index 6fc356e8..53c724b9 100644
--- a/include/internal/catch_test_spec_parser.hpp
+++ b/include/internal/catch_test_spec_parser.hpp
@@ -36,10 +36,10 @@ namespace Catch {
visitChar( m_arg[m_pos] );
if( m_mode == Name )
addPattern<TestSpec::NamePattern>();
+ addFilter();
return *this;
}
TestSpec testSpec() {
- addFilter();
return m_testSpec;
}
private: