diff options
Diffstat (limited to 'test/unit_tests/fixtures.hpp')
-rw-r--r-- | test/unit_tests/fixtures.hpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/unit_tests/fixtures.hpp b/test/unit_tests/fixtures.hpp index 85451d4..60047df 100644 --- a/test/unit_tests/fixtures.hpp +++ b/test/unit_tests/fixtures.hpp @@ -115,7 +115,12 @@ private: } static boost::filesystem::path get_module_pdb_path() { - return Paths::get().exe_dir / (get_module_name() + ".pdb"); + // That's pretty ad-hoc, but seems to work; based on + // https://www.boost.org/doc/libs/1_70_0/libs/test/doc/html/boost_test/runtime_config/custom_command_line_arguments.html + BOOST_TEST_REQUIRE(boost::unit_test::framework::master_test_suite().argc == 3); + BOOST_TEST_REQUIRE(boost::unit_test::framework::master_test_suite().argv[1] == + "--test_lib_pdb"); + return boost::unit_test::framework::master_test_suite().argv[2]; } }; |