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
This commit is contained in:
Martin Hořeňovský committed 2020-10-22 16:20:41 +02:00
1 parent 0c7f96ba63
commit 8878f90323
2 files changed
+7

No files matched your search

+3
View File
@@ -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 {