From db6e3cbf40357750bc7babd379268f54ebaf692e Mon Sep 17 00:00:00 2001 From: Trevor Pounds Date: Sat, 21 Jan 2017 15:56:56 -0500 Subject: [PATCH] Prevent direct TestFixture instantiation. --- tpunit++.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tpunit++.hpp b/tpunit++.hpp index ed5d0fc..ac53ec6 100644 --- a/tpunit++.hpp +++ b/tpunit++.hpp @@ -234,8 +234,6 @@ namespace tpunit { int _traces; }; - public: - /** * Base constructor to register methods with the test fixture. A test * fixture can register up to 50 methods. @@ -305,6 +303,8 @@ namespace tpunit { return new method(this, static_cast(_method), _name, _type); } + public: + static int tpunit_detail_do_run() { TestFixture* f = *tpunit_detail_fixtures(); while(f) {