diff options
author | Maxim Siniavine <siniavine@google.com> | 2016-06-21 16:32:48 -0700 |
---|---|---|
committer | Maxim Siniavine <siniavine@google.com> | 2016-06-21 16:32:48 -0700 |
commit | 8438477ac7130f93f9a3f7e1229147b3d92c9663 (patch) | |
tree | 03d2e00dc59d84f5ee3c3eb01bd1e8b17e2c5c24 /tests/src | |
parent | e952089725398c8fa8b617ca7bdde840a38849fd (diff) | |
download | loganalysis-8438477ac7130f93f9a3f7e1229147b3d92c9663.tar.gz |
Fix kernel reset message that gets generated from the bootreason property.
Change-Id: Ic7d77f9e4edee8e164ad3e03c452f220c7847ece
Diffstat (limited to 'tests/src')
-rw-r--r-- | tests/src/com/android/loganalysis/parser/BugreportParserTest.java | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/tests/src/com/android/loganalysis/parser/BugreportParserTest.java b/tests/src/com/android/loganalysis/parser/BugreportParserTest.java index b6e35b3..b47ea22 100644 --- a/tests/src/com/android/loganalysis/parser/BugreportParserTest.java +++ b/tests/src/com/android/loganalysis/parser/BugreportParserTest.java @@ -18,17 +18,10 @@ package com.android.loganalysis.parser; import com.android.loganalysis.item.BugreportItem; import com.android.loganalysis.item.IItem; import com.android.loganalysis.item.MiscKernelLogItem; -import com.android.loganalysis.rule.RuleEngine; -import com.android.loganalysis.rule.RuleEngine.RuleType; import com.android.loganalysis.util.ArrayUtil; import junit.framework.TestCase; -import org.json.JSONObject; - -import java.io.BufferedReader; -import java.io.File; -import java.io.FileReader; import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; @@ -325,6 +318,10 @@ public class BugreportParserTest extends TestCase { assertEquals("Last boot reason: hw_reset", bugreport.getLastKmsg().getEvents().get(0).getStack()); assertEquals("KERNEL_RESET", bugreport.getLastKmsg().getEvents().get(0).getCategory()); + assertEquals("", bugreport.getLastKmsg().getEvents().get(0).getPreamble()); + assertEquals(0.0, bugreport.getLastKmsg().getEvents().get(0).getEventTime()); + assertEquals(0.0, bugreport.getLastKmsg().getStartTime()); + assertEquals(0.0, bugreport.getLastKmsg().getStopTime()); } /** |