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

summaryrefslogtreecommitdiffhomepage
path: root/projects
diff options
context:
space:
mode:
authorPhil Nash2012-05-21 18:52:09 +0100
committerPhil Nash2012-05-21 18:52:09 +0100
commit371db8b42fb2171ea2ab542a9875ddf4e3e8b8ea (patch)
tree43a7fd79a8295ed35621e596f14c782b3fcfa9ec /projects
parent89d2a3f911cd87a6bef96aceb1702e65eee73163 (diff)
downloadcatch3-371db8b42fb2171ea2ab542a9875ddf4e3e8b8ea.tar.gz
Context methods are non-static - accessed via interface
This is a move towards allowing multiple contexts - with the concept of a (possibly thread local) "current" context
Diffstat (limited to 'projects')
-rw-r--r--projects/SelfTest/catch_self_test.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/projects/SelfTest/catch_self_test.hpp b/projects/SelfTest/catch_self_test.hpp
index 0081e3b2..93a0d607 100644
--- a/projects/SelfTest/catch_self_test.hpp
+++ b/projects/SelfTest/catch_self_test.hpp
@@ -9,6 +9,7 @@
#define TWOBLUECUBES_CATCH_SELF_TEST_HPP_INCLUDED
#include "catch.hpp"
+#include "catch_test_case_info.hpp"
#include "set"
@@ -143,7 +144,7 @@ namespace Catch {
static void runMatching( const std::string& testSpec,
Expected::Result expectedResult ) {
- forEach( Context::getTestCaseRegistry().getMatchingTestCases( testSpec ),
+ forEach( getCurrentContext().getTestCaseRegistry().getMatchingTestCases( testSpec ),
MetaTestRunner( expectedResult ) );
}