diff options
author | bryner <bryner@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2007-03-22 23:20:17 +0000 |
---|---|---|
committer | bryner <bryner@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2007-03-22 23:20:17 +0000 |
commit | 809f0cb858f482e3ec2a12192580ab52d27c185c (patch) | |
tree | 75b04e0379a9f7da7e30f686b40bbbbf991d485b /src/processor/basic_source_line_resolver_unittest.cc | |
parent | Don't output FUNC lines for 0-length functions (#139). r=bryner (diff) | |
download | breakpad-809f0cb858f482e3ec2a12192580ab52d27c185c.tar.xz |
Ignore functions that have invalid addresses or sizes, instead of aborting the
symbol file load (#137). r=mmentovai.
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@130 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/processor/basic_source_line_resolver_unittest.cc')
-rw-r--r-- | src/processor/basic_source_line_resolver_unittest.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/processor/basic_source_line_resolver_unittest.cc b/src/processor/basic_source_line_resolver_unittest.cc index 96ce5ebe..63b38456 100644 --- a/src/processor/basic_source_line_resolver_unittest.cc +++ b/src/processor/basic_source_line_resolver_unittest.cc @@ -152,6 +152,10 @@ static bool RunTests() { ASSERT_FALSE(frame_info->allocates_base_pointer); ASSERT_FALSE(frame_info->program_string.empty()); + frame.instruction = 0x2000; + frame_info.reset(resolver.FillSourceLineInfo(&frame)); + ASSERT_FALSE(frame_info.get()); + TestCodeModule module2("module2"); frame.instruction = 0x2181; @@ -186,8 +190,11 @@ static bool RunTests() { testdata_dir + "/module3_bad.out")); ASSERT_FALSE(resolver.HasModule("module3")); ASSERT_FALSE(resolver.LoadModule("module4", - testdata_dir + "/invalid-filename")); + testdata_dir + "/module4_bad.out")); ASSERT_FALSE(resolver.HasModule("module4")); + ASSERT_FALSE(resolver.LoadModule("module5", + testdata_dir + "/invalid-filename")); + ASSERT_FALSE(resolver.HasModule("module5")); ASSERT_FALSE(resolver.HasModule("invalid-module")); return true; } |