Skip to content

Commit

Permalink
Use autogenerated initializer function
Browse files Browse the repository at this point in the history
  • Loading branch information
lballabio committed Dec 19, 2023
1 parent 3fa1d1f commit ee2bb80
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
4 changes: 2 additions & 2 deletions test-suite/paralleltestrunner.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ namespace {
bool visit(test_unit const& tu) {
if (tu.p_parent_id == framework::master_test_suite().p_id) {
BOOST_TEST_MESSAGE(tu.p_name.get());
QL_REQUIRE(!tu.p_name.get().compare("QuantLibTests") or !tu.p_name.get().compare("QuantLib test suite"),
"could not find QuantLib test suite");
QL_REQUIRE(!tu.p_name.get().compare("QuantLibTests"),
"could not find QuantLib test suite");

testSuiteId_ = tu.p_id;
}
Expand Down
12 changes: 2 additions & 10 deletions test-suite/quantlibtestsuite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
FOR A PARTICULAR PURPOSE. See the license for more details.
*/

#define BOOST_TEST_MODULE QuantLibTests

#ifdef QL_ENABLE_PARALLEL_UNIT_TEST_RUNNER
#include "paralleltestrunner.hpp"
#else
Expand All @@ -31,13 +33,3 @@
# include <ql/auto_link.hpp>
#endif

#include "quantlibglobalfixture.hpp"

using namespace boost::unit_test_framework;

test_suite* init_unit_test_suite(int, char* []) {

auto* test = BOOST_TEST_SUITE("QuantLib test suite");

return test;
}

0 comments on commit ee2bb80

Please sign in to comment.