From 418e850b2b1f76b204af87a5d930f5129055e09a Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 13 Sep 2020 13:47:30 +0300 Subject: call_stack: can't noinline w/ MSVC, let's try a DLL --- test/unit_tests/dbghelp.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'test/unit_tests/dbghelp.cpp') diff --git a/test/unit_tests/dbghelp.cpp b/test/unit_tests/dbghelp.cpp index 86cf1ff..13d22b8 100644 --- a/test/unit_tests/dbghelp.cpp +++ b/test/unit_tests/dbghelp.cpp @@ -36,10 +36,10 @@ Set join(Set&& xs, Set&& ys) { class DbgHelpWithSymbols : public DbgHelp { public: - DbgHelpWithSymbols() { load_symbols_pdb(); } + DbgHelpWithSymbols() { load_test_lib_pdb(); } static const std::string& get_namespace() { - static const std::string name{"foobar_ns"}; + static const std::string name{"test"}; return name; } @@ -47,7 +47,7 @@ public: static SymbolList expected_functions() { return make_qualified({"foo", "bar", "baz"}); } - static SymbolList expected_variables() { return make_qualified({"exit_code"}); } + static SymbolList expected_variables() { return make_qualified({"var"}); } static SymbolList expected_symbols() { return join(expected_functions(), expected_variables()); @@ -62,14 +62,14 @@ private: return qualified; } - void load_symbols_pdb() { - const auto pdb_path = get_symbols_pdb_path().string(); + void load_test_lib_pdb() { + const auto pdb_path = get_test_lib_pdb_path().string(); BOOST_TEST_MESSAGE("Loading PDB: " << pdb_path); dbghelp.load_pdb(pdb_path); } - static boost::filesystem::path get_symbols_pdb_path() { - return Paths::get().exe_dir / "symbols.pdb"; + static boost::filesystem::path get_test_lib_pdb_path() { + return Paths::get().exe_dir / "test_lib.pdb"; } }; -- cgit v1.2.3