aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test/unit_tests/dbghelp.cpp
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-09-13 13:47:30 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-09-14 00:18:49 +0300
commit418e850b2b1f76b204af87a5d930f5129055e09a (patch)
tree470f40f91b500ca1de712689d171433d9dd4d0d5 /test/unit_tests/dbghelp.cpp
parentcall_stack: try to fix __declspec(noinline) #3 (diff)
downloadwinapi-debug-418e850b2b1f76b204af87a5d930f5129055e09a.tar.gz
winapi-debug-418e850b2b1f76b204af87a5d930f5129055e09a.zip
call_stack: can't noinline w/ MSVC, let's try a DLL
Diffstat (limited to 'test/unit_tests/dbghelp.cpp')
-rw-r--r--test/unit_tests/dbghelp.cpp14
1 files changed, 7 insertions, 7 deletions
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<T> join(Set<T>&& xs, Set<T>&& 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";
}
};