mirror of
https://github.com/catchorg/Catch2.git
synced 2025-05-25 14:09:26 +00:00
Clean up generator state
This commit is contained in:
parent
750b52b814
commit
c65aeaf25f
1 changed files with 6 additions and 0 deletions
|
@ -12,6 +12,7 @@
|
||||||
|
|
||||||
#include "catch_context.h"
|
#include "catch_context.h"
|
||||||
#include "catch_stream.hpp"
|
#include "catch_stream.hpp"
|
||||||
|
#include "catch_common.h"
|
||||||
|
|
||||||
namespace Catch {
|
namespace Catch {
|
||||||
|
|
||||||
|
@ -21,6 +22,11 @@ namespace Catch {
|
||||||
Context( Context const& );
|
Context( Context const& );
|
||||||
void operator=( Context const& );
|
void operator=( Context const& );
|
||||||
|
|
||||||
|
public:
|
||||||
|
virtual ~Context() {
|
||||||
|
deleteAllValues( m_generatorsByTestName );
|
||||||
|
}
|
||||||
|
|
||||||
public: // IContext
|
public: // IContext
|
||||||
virtual IResultCapture* getResultCapture() {
|
virtual IResultCapture* getResultCapture() {
|
||||||
return m_resultCapture;
|
return m_resultCapture;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue