mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-26 07:16:10 +01:00
Fixed uninitialised members in Context object
This commit is contained in:
parent
2b644b5128
commit
93a945cee9
@ -17,7 +17,7 @@ namespace Catch {
|
|||||||
|
|
||||||
class Context : public IMutableContext {
|
class Context : public IMutableContext {
|
||||||
|
|
||||||
Context() : m_config( NULL ) {}
|
Context() : m_config( NULL ), m_runner( NULL ), m_resultCapture( NULL ) {}
|
||||||
Context( Context const& );
|
Context( Context const& );
|
||||||
void operator=( Context const& );
|
void operator=( Context const& );
|
||||||
|
|
||||||
@ -77,9 +77,9 @@ namespace Catch {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Ptr<IConfig const> m_config;
|
||||||
IRunner* m_runner;
|
IRunner* m_runner;
|
||||||
IResultCapture* m_resultCapture;
|
IResultCapture* m_resultCapture;
|
||||||
Ptr<IConfig const> m_config;
|
|
||||||
std::map<std::string, IGeneratorsForTest*> m_generatorsByTestName;
|
std::map<std::string, IGeneratorsForTest*> m_generatorsByTestName;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -708,5 +708,5 @@ with expansion:
|
|||||||
"first" == "second"
|
"first" == "second"
|
||||||
|
|
||||||
===============================================================================
|
===============================================================================
|
||||||
121 test cases - 35 failed (744 assertions - 90 failed)
|
122 test cases - 35 failed (753 assertions - 90 failed)
|
||||||
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,5 @@
|
|||||||
<testsuites>
|
<testsuites>
|
||||||
<testsuite name="~_" errors="10" failures="99" tests="763" hostname="tbd" time="{duration}" timestamp="tbd">
|
<testsuite name="~_" errors="10" failures="99" tests="772" hostname="tbd" time="{duration}" timestamp="tbd">
|
||||||
<testcase classname="global" name="./succeeding/Approx/simple" time="{duration}"/>
|
<testcase classname="global" name="./succeeding/Approx/simple" time="{duration}"/>
|
||||||
<testcase classname="global" name="./succeeding/Approx/epsilon" time="{duration}"/>
|
<testcase classname="global" name="./succeeding/Approx/epsilon" time="{duration}"/>
|
||||||
<testcase classname="global" name="./succeeding/Approx/float" time="{duration}"/>
|
<testcase classname="global" name="./succeeding/Approx/float" time="{duration}"/>
|
||||||
@ -466,7 +466,8 @@ An error
|
|||||||
<testcase classname="global" name="selftest/test filters" time="{duration}"/>
|
<testcase classname="global" name="selftest/test filters" time="{duration}"/>
|
||||||
<testcase classname="global" name="selftest/filter/prefix wildcard" time="{duration}"/>
|
<testcase classname="global" name="selftest/filter/prefix wildcard" time="{duration}"/>
|
||||||
<testcase classname="global" name="selftest/filter/wildcard at both ends" time="{duration}"/>
|
<testcase classname="global" name="selftest/filter/wildcard at both ends" time="{duration}"/>
|
||||||
<testcase classname="selftest/tags" name="one tag" time="{duration}"/>
|
<testcase classname="selftest/tags" name="single [one] tag" time="{duration}"/>
|
||||||
|
<testcase classname="selftest/tags" name="single [two] tag" time="{duration}"/>
|
||||||
<testcase classname="selftest/tags" name="two tags" time="{duration}"/>
|
<testcase classname="selftest/tags" name="two tags" time="{duration}"/>
|
||||||
<testcase classname="selftest/tags" name="complex" time="{duration}"/>
|
<testcase classname="selftest/tags" name="complex" time="{duration}"/>
|
||||||
<testcase classname="selftest/tags" name="one tag with characters either side" time="{duration}"/>
|
<testcase classname="selftest/tags" name="one tag with characters either side" time="{duration}"/>
|
||||||
@ -491,6 +492,7 @@ hello
|
|||||||
</system-out>
|
</system-out>
|
||||||
</testcase>
|
</testcase>
|
||||||
<testcase classname="global" name="Text can be formatted using the Text class" time="{duration}"/>
|
<testcase classname="global" name="Text can be formatted using the Text class" time="{duration}"/>
|
||||||
|
<testcase classname="global" name="Long text is truncted" time="{duration}"/>
|
||||||
<testcase classname="global" name="./succeeding/Tricky/std::pair" time="{duration}"/>
|
<testcase classname="global" name="./succeeding/Tricky/std::pair" time="{duration}"/>
|
||||||
<testcase classname="global" name="./inprogress/failing/Tricky/trailing expression" time="{duration}"/>
|
<testcase classname="global" name="./inprogress/failing/Tricky/trailing expression" time="{duration}"/>
|
||||||
<testcase classname="global" name="./inprogress/failing/Tricky/compound lhs" time="{duration}"/>
|
<testcase classname="global" name="./inprogress/failing/Tricky/compound lhs" time="{duration}"/>
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* CATCH v1.0 build 11 (master branch)
|
* CATCH v1.0 build 11 (master branch)
|
||||||
* Generated: 2013-10-17 22:42:24.922987
|
* Generated: 2013-10-23 15:34:32.120349
|
||||||
* ----------------------------------------------------------
|
* ----------------------------------------------------------
|
||||||
* This file has been merged from multiple headers. Please don't edit it directly
|
* This file has been merged from multiple headers. Please don't edit it directly
|
||||||
* Copyright (c) 2012 Two Blue Cubes Ltd. All rights reserved.
|
* Copyright (c) 2012 Two Blue Cubes Ltd. All rights reserved.
|
||||||
@ -5774,7 +5774,7 @@ namespace Catch {
|
|||||||
|
|
||||||
class Context : public IMutableContext {
|
class Context : public IMutableContext {
|
||||||
|
|
||||||
Context() : m_config( NULL ) {}
|
Context() : m_config( NULL ), m_runner( NULL ), m_resultCapture( NULL ) {}
|
||||||
Context( Context const& );
|
Context( Context const& );
|
||||||
void operator=( Context const& );
|
void operator=( Context const& );
|
||||||
|
|
||||||
@ -5834,9 +5834,9 @@ namespace Catch {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Ptr<IConfig const> m_config;
|
||||||
IRunner* m_runner;
|
IRunner* m_runner;
|
||||||
IResultCapture* m_resultCapture;
|
IResultCapture* m_resultCapture;
|
||||||
Ptr<IConfig const> m_config;
|
|
||||||
std::map<std::string, IGeneratorsForTest*> m_generatorsByTestName;
|
std::map<std::string, IGeneratorsForTest*> m_generatorsByTestName;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user