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

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2
diff options
context:
space:
mode:
authorMartin Hořeňovský2020-10-22 16:17:34 +0200
committerMartin Hořeňovský2020-10-22 16:20:41 +0200
commit8878f90323f7229b391f18e467113cb654fbdc06 (patch)
tree6c2308cf38560a370e76867e3021c334d6b127fa /src/catch2
parent0c7f96ba630a49e18e7b2fb0e5ed241b04a7898a (diff)
downloadcatch3-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')
-rw-r--r--src/catch2/catch_test_case_info.cpp3
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 {