diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-09-14 04:51:52 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-09-14 16:02:26 +0300 |
commit | ed597441678604f6bf44513532ad282e4d5593be (patch) | |
tree | 2839da580b2faf96a6c634b275ae01b84eee4442 /test/unit_tests/dbghelp.cpp | |
parent | disable Boost autolinking feature (diff) | |
download | winapi-debug-ed597441678604f6bf44513532ad282e4d5593be.tar.gz winapi-debug-ed597441678604f6bf44513532ad282e4d5593be.zip |
unit_tests: more call stack tests
Diffstat (limited to '')
-rw-r--r-- | test/unit_tests/dbghelp.cpp | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/test/unit_tests/dbghelp.cpp b/test/unit_tests/dbghelp.cpp index 4346bf7..bd2d300 100644 --- a/test/unit_tests/dbghelp.cpp +++ b/test/unit_tests/dbghelp.cpp @@ -1,8 +1,6 @@ #include "fixtures.hpp" -#include "paths.hpp" #include <pdb/all.hpp> -#include <test_lib.hpp> #include <boost/test/unit_test.hpp> @@ -10,15 +8,7 @@ #include <string> #include <vector> -namespace { - -void throw_call_stack() { - throw pdb::CallStack::capture(); -} - -} // namespace - -BOOST_FIXTURE_TEST_SUITE(dbghelp_tests, DbgHelpWithSymbols) +BOOST_FIXTURE_TEST_SUITE(enum_symbols_tests, PostMortem) BOOST_AUTO_TEST_CASE(enum_symbols) { // Symbols can be enumerated, and all the expected symbols are there. @@ -44,14 +34,4 @@ BOOST_AUTO_TEST_CASE(enum_symbols) { } } -BOOST_AUTO_TEST_CASE(call_stack) { - try { - test_ns::foo(&throw_call_stack); - } catch (const pdb::CallStack& call_stack) { - BOOST_TEST(true, "Caught the call stack"); - return; - } - BOOST_TEST(false, "Didn't catch the call stack"); -} - BOOST_AUTO_TEST_SUITE_END() |