From 5f2361f3afb5c8d15e0a5f262a0f8a7942084563 Mon Sep 17 00:00:00 2001 From: Andreas Sandberg Date: Mon, 22 Apr 2013 13:20:31 -0400 Subject: arm: Enable support for triggering a sim panic on kernel panics Add the options 'panic_on_panic' and 'panic_on_oops' to the LinuxArmSystem SimObject. When these option are enabled, the simulator panics when the guest kernel panics or oopses. Enable panic on panic and panic on oops in ARM-based test cases. --- tests/configs/arm_generic.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/configs/arm_generic.py') diff --git a/tests/configs/arm_generic.py b/tests/configs/arm_generic.py index 95f9b8bd1..1b0e8ee8b 100644 --- a/tests/configs/arm_generic.py +++ b/tests/configs/arm_generic.py @@ -62,6 +62,13 @@ class LinuxArmSystemBuilder(object): system = FSConfig.makeArmSystem(self.mem_mode, self.machine_type, None, False) + + # We typically want the simulator to panic if the kernel + # panics or oopses. This prevents the simulator from running + # an obviously failed test case until the end of time. + system.panic_on_panic = True + system.panic_on_oops = True + self.init_system(system) return system -- cgit v1.2.3