Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/projects/SelfTest/PartTrackerTests.cpp
diff options
context:
space:
mode:
authorPhil Nash2015-10-29 19:33:25 +0000
committerPhil Nash2015-10-29 19:33:25 +0000
commit73a140fb9e2aeed03011c70715ccd05be5eaf8d7 (patch)
tree24cfb263cdf8e55109b8203a09758d1078380e36 /projects/SelfTest/PartTrackerTests.cpp
parentef62b578e293e21b5f973d30130866c9a869fdeb (diff)
downloadcatch3-73a140fb9e2aeed03011c70715ccd05be5eaf8d7.tar.gz
More minor tweaks
Diffstat (limited to 'projects/SelfTest/PartTrackerTests.cpp')
-rw-r--r--projects/SelfTest/PartTrackerTests.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/projects/SelfTest/PartTrackerTests.cpp b/projects/SelfTest/PartTrackerTests.cpp
index b33084d9..88a8cb79 100644
--- a/projects/SelfTest/PartTrackerTests.cpp
+++ b/projects/SelfTest/PartTrackerTests.cpp
@@ -104,7 +104,7 @@ namespace Catch
class PartTrackerBase : public IPartTracker {
protected:
- enum RunState {
+ enum CycleState {
NotStarted,
Executing,
ExecutingChildren,
@@ -125,18 +125,18 @@ namespace Catch
TrackerContext& m_ctx;
IPartTracker* m_parent;
Children m_children;
- RunState m_runState;
+ CycleState m_runState;
public:
PartTrackerBase( std::string const& name, TrackerContext& ctx, IPartTracker* parent )
: m_name( name ),
m_ctx( ctx ),
m_parent( parent ),
- m_runState( NotStarted ) {}
+ m_runState( NotStarted )
+ {}
virtual std::string name() const CATCH_OVERRIDE {
return m_name;
}
-
virtual bool isComplete() const CATCH_OVERRIDE {
return m_runState == CompletedSuccessfully || m_runState == Failed;
}
@@ -227,7 +227,6 @@ namespace Catch
};
-
class SectionTracker : public PartTrackerBase {
public:
SectionTracker( std::string const& name, TrackerContext& ctx, IPartTracker* parent )
@@ -438,7 +437,6 @@ TEST_CASE( "PartTracker" ) {
REQUIRE( s2b.isSuccessfullyCompleted() == false );
testCase2.close();
-// REQUIRE( testCase2.isComplete() );
REQUIRE( testCase2.isSuccessfullyCompleted() == false );
// Need a final cycle