diff options
| author | Martin Hořeňovský | 2020-10-22 16:17:34 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2020-10-22 16:20:41 +0200 |
| commit | 8878f90323f7229b391f18e467113cb654fbdc06 (patch) | |
| tree | 6c2308cf38560a370e76867e3021c334d6b127fa /src/catch2/catch_test_case_info.cpp | |
| parent | 0c7f96ba630a49e18e7b2fb0e5ed241b04a7898a (diff) | |
| download | catch3-8878f90323f7229b391f18e467113cb654fbdc06.tar.gz | |
Fix matching of non-lowercase filename tags
The bug was caused by forgetting to lower-case the filename tag
for matching against test spec.
Fixes #2064
Diffstat (limited to 'src/catch2/catch_test_case_info.cpp')
| -rw-r--r-- | src/catch2/catch_test_case_info.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/catch2/catch_test_case_info.cpp b/src/catch2/catch_test_case_info.cpp index a20bc791..e8029e9c 100644 --- a/src/catch2/catch_test_case_info.cpp +++ b/src/catch2/catch_test_case_info.cpp @@ -190,6 +190,9 @@ namespace Catch { std::string combined("#"); combined += extractFilenamePart(lineInfo.file); internalAppendTag(combined); + // TBD: Running this over all tags again is inefficient, but + // simple enough. In practice, the overhead is small enough. + toLowerInPlace(backingLCaseTags); } std::string TestCaseInfo::tagsAsString() const { |