mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-17 19:22:25 +01:00
Fix uninitialized member in TestRegistry
Found by valgrind. Signed-off-by: David Wagner <david.wagner@intel.com>
This commit is contained in:
parent
84d1c080d6
commit
6f4098d519
@ -104,8 +104,10 @@ namespace Catch {
|
||||
return m_functions;
|
||||
}
|
||||
virtual std::vector<TestCase> const& getAllTestsSorted( IConfig const& config ) const {
|
||||
if( m_sortedFunctions.empty() )
|
||||
if( m_sortedFunctions.empty() ) {
|
||||
enforceNoDuplicateTestCases( m_functions );
|
||||
m_currentSortOrder = config.runOrder();
|
||||
}
|
||||
|
||||
if( m_currentSortOrder != config.runOrder() || m_sortedFunctions.empty() ) {
|
||||
m_sortedFunctions = sortTests( config, m_functions );
|
||||
|
Loading…
Reference in New Issue
Block a user