diff options
| author | Phil Nash | 2014-05-19 18:20:44 +0100 |
|---|---|---|
| committer | Phil Nash | 2014-05-19 18:20:44 +0100 |
| commit | e8aa0bb19beef911789953c250b5eaa6571875cf (patch) | |
| tree | d9db07f79aafc1afda9a78d632b7915617e234ab /include/internal | |
| parent | fcf0deb116125a0b314cb52f461339a3ed30ec2b (diff) | |
| download | catch3-e8aa0bb19beef911789953c250b5eaa6571875cf.tar.gz | |
Fixed issue with reading test names from file
Diffstat (limited to 'include/internal')
| -rw-r--r-- | include/internal/catch_commandline.hpp | 2 | ||||
| -rw-r--r-- | include/internal/catch_test_spec_parser.hpp | 2 |
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: |