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ý
2020-10-22 16:17:34 +02:00
parent 0c7f96ba63
commit 8878f90323
2 changed files with 7 additions and 0 deletions

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 {