aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/processor/basic_source_line_resolver_unittest.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/processor/basic_source_line_resolver_unittest.cc b/src/processor/basic_source_line_resolver_unittest.cc
index 95595a85..cea98b84 100644
--- a/src/processor/basic_source_line_resolver_unittest.cc
+++ b/src/processor/basic_source_line_resolver_unittest.cc
@@ -173,8 +173,10 @@ static bool RunTests() {
ASSERT_EQ(frame_info->prolog_size, 1);
frame.instruction = 0x216f;
- resolver.FillSourceLineInfo(&frame);
+ StackFrameInfo *s;
+ s = resolver.FillSourceLineInfo(&frame);
ASSERT_EQ(frame.function_name, "Public2_1");
+ delete s;
ClearSourceLineInfo(&frame);
frame.instruction = 0x219f;
@@ -184,9 +186,11 @@ static bool RunTests() {
frame.instruction = 0x21a0;
frame.module = &module2;
- resolver.FillSourceLineInfo(&frame);
+ s = resolver.FillSourceLineInfo(&frame);
ASSERT_EQ(frame.function_name, "Public2_2");
+ delete s;
+
ASSERT_FALSE(resolver.LoadModule("module3",
testdata_dir + "/module3_bad.out"));
ASSERT_FALSE(resolver.HasModule("module3"));