mirror of
https://github.com/catchorg/Catch2.git
synced 2025-09-21 03:55:39 +02:00
Remove <set> include from the common test path
This commit is contained in:
@@ -78,7 +78,7 @@ namespace Catch {
|
||||
void applyFilenamesAsTags( IConfig const& config ) {
|
||||
auto& tests = const_cast<std::vector<TestCase>&>( getAllTestCasesSorted( config ) );
|
||||
for( auto& testCase : tests ) {
|
||||
std::set<std::string> tags = testCase.tags;
|
||||
auto tags = testCase.tags;
|
||||
|
||||
std::string filename = testCase.lineInfo.file;
|
||||
std::string::size_type lastSlash = filename.find_last_of( "\\/" );
|
||||
@@ -89,7 +89,7 @@ namespace Catch {
|
||||
if( lastDot != std::string::npos )
|
||||
filename = filename.substr( 0, lastDot );
|
||||
|
||||
tags.insert( "#" + filename );
|
||||
tags.push_back( "#" + filename );
|
||||
setTags( testCase, tags );
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user