Index: src/processor/microdump_processor_unittest.cc |
diff --git a/src/processor/microdump_processor_unittest.cc b/src/processor/microdump_processor_unittest.cc |
index 7dcfe44baa038c41b64a5e511c0b3070f8bbc437..53940842942b330b57b67542d18d12fa5c973a97 100644 |
--- a/src/processor/microdump_processor_unittest.cc |
+++ b/src/processor/microdump_processor_unittest.cc |
@@ -212,6 +212,48 @@ TEST_F(MicrodumpProcessorTest, TestProcessX86) { |
// names. |
} |
+TEST_F(MicrodumpProcessorTest, TestProcessMips) { |
+ ProcessState state; |
+ AnalyzeDump("microdump-mips32.dmp", false /* omit_symbols */, |
+ 2 /* expected_cpu_count */, &state); |
+ |
+ ASSERT_EQ(7U, state.modules()->module_count()); |
+ ASSERT_EQ("mips", state.system_info()->cpu); |
+ ASSERT_EQ("3.0.8-g893bf16 #7 SMP PREEMPT Fri Jul" |
+ " 10 15:20:59 PDT 2015", state.system_info()->os_version); |
Primiano Tucci (use gerrit)
2016/02/25 01:08:06
Looks like this string should fit on one line, why
mveljko
2016/02/25 09:29:50
Done. Fixed it for both tests.
|
+ ASSERT_EQ(4U, state.threads()->at(0)->frames()->size()); |
+ |
+ ASSERT_EQ("blaTest", |
+ state.threads()->at(0)->frames()->at(0)->function_name); |
+ ASSERT_EQ("Crash", |
+ state.threads()->at(0)->frames()->at(1)->function_name); |
+ ASSERT_EQ("main", |
+ state.threads()->at(0)->frames()->at(2)->function_name); |
+ ASSERT_EQ("crash_example", |
+ state.threads()->at(0)->frames()->at(0)->module->debug_file()); |
+} |
+ |
+TEST_F(MicrodumpProcessorTest, TestProcessMips64) { |
+ ProcessState state; |
+ AnalyzeDump("microdump-mips64.dmp", false /* omit_symbols */, |
+ 1 /* expected_cpu_count */, &state); |
+ |
+ ASSERT_EQ(7U, state.modules()->module_count()); |
+ ASSERT_EQ("mips64", state.system_info()->cpu); |
+ ASSERT_EQ("3.10.0-gf185e20 #112 PREEMPT Mon Oct" |
+ " 5 11:12:49 PDT 2015", state.system_info()->os_version); |
+ ASSERT_EQ(4U, state.threads()->at(0)->frames()->size()); |
+ |
+ ASSERT_EQ("blaTest", |
+ state.threads()->at(0)->frames()->at(0)->function_name); |
+ ASSERT_EQ("Crash", |
+ state.threads()->at(0)->frames()->at(1)->function_name); |
+ ASSERT_EQ("main", |
+ state.threads()->at(0)->frames()->at(2)->function_name); |
+ ASSERT_EQ("crash_example", |
+ state.threads()->at(0)->frames()->at(0)->module->debug_file()); |
+} |
+ |
} // namespace |
int main(int argc, char* argv[]) { |