summaryrefslogtreecommitdiffstatshomepage
path: root/test/unit_tests
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-06-05 11:34:11 +0200
committerEgor Tensin <egor@tensin.name>2026-06-05 11:34:11 +0200
commit994f91c5c5b1a3ab40bc5545070dab96b6ff0098 (patch)
tree4ee7f0ee0fec8c1841bf4d5f30093cb85568ec7a /test/unit_tests
parentfix .clang-tidy (diff)
downloadwinapi-debug-994f91c5c5b1a3ab40bc5545070dab96b6ff0098.tar.gz
winapi-debug-994f91c5c5b1a3ab40bc5545070dab96b6ff0098.zip
fix weird errors
For some reason, I can no longer initialize a CallStack instance from an initializer list. On CI, it works fine; maybe my compiler is newer and somehow defaults to a newer standard or something? Idk
Diffstat (limited to 'test/unit_tests')
-rw-r--r--test/unit_tests/call_stack.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit_tests/call_stack.cpp b/test/unit_tests/call_stack.cpp
index 039e8f9..8195137 100644
--- a/test/unit_tests/call_stack.cpp
+++ b/test/unit_tests/call_stack.cpp
@@ -27,7 +27,7 @@ BOOST_AUTO_TEST_CASE(call_stack) {
// Debug output:
std::vector<std::string> pretty;
- pretty.reserve(call_stack.length);
+ pretty.reserve(call_stack.length());
BOOST_TEST_MESSAGE("Call stack:");
for (const auto& addr : call_stack) {
@@ -37,7 +37,7 @@ BOOST_AUTO_TEST_CASE(call_stack) {
// Second, resolve the symbols:
std::vector<boost::optional<winapi::SymbolInfo>> symbols;
- symbols.reserve(call_stack.length);
+ symbols.reserve(call_stack.length());
BOOST_TEST_MESSAGE("Resolved symbols:");
for (const auto& addr : call_stack) {