mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 04:07:10 +01:00 
			
		
		
		
	Merge pull request #1492 from Lotterleben/fix_1394
fix #1394: avoid superfluous re-run when specific section is selected
This commit is contained in:
		| @@ -190,6 +190,17 @@ namespace TestCaseTracking { | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     bool SectionTracker::isComplete() const { | ||||
|         bool complete = true; | ||||
|  | ||||
|         if ((m_filters.empty() || m_filters[0] == "") || | ||||
|              std::find(m_filters.begin(), m_filters.end(), | ||||
|                        m_nameAndLocation.name) != m_filters.end()) | ||||
|             complete = TrackerBase::isComplete(); | ||||
|         return complete; | ||||
|  | ||||
|     } | ||||
|  | ||||
|     bool SectionTracker::isSectionTracker() const { return true; } | ||||
|  | ||||
|     SectionTracker& SectionTracker::acquire( TrackerContext& ctx, NameAndLocation const& nameAndLocation ) { | ||||
|   | ||||
| @@ -140,6 +140,8 @@ namespace TestCaseTracking { | ||||
|  | ||||
|         bool isSectionTracker() const override; | ||||
|  | ||||
|         bool isComplete() const override; | ||||
|  | ||||
|         static SectionTracker& acquire( TrackerContext& ctx, NameAndLocation const& nameAndLocation ); | ||||
|  | ||||
|         void tryOpen(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Martin Hořeňovský
					Martin Hořeňovský