[Lldb-commits] [lldb] r171554 - /lldb/trunk/test/functionalities/inferior-crashing/TestInferiorCrashing.py
Andrew Kaylor
andrew.kaylor at intel.com
Fri Jan 4 15:27:36 PST 2013
Author: akaylor
Date: Fri Jan 4 17:27:36 2013
New Revision: 171554
URL: http://llvm.org/viewvc/llvm-project?rev=171554&view=rev
Log:
Generalizing expected stop reason string checking in InferiorCrashing test case.
Modified:
lldb/trunk/test/functionalities/inferior-crashing/TestInferiorCrashing.py
Modified: lldb/trunk/test/functionalities/inferior-crashing/TestInferiorCrashing.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/inferior-crashing/TestInferiorCrashing.py?rev=171554&r1=171553&r2=171554&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/inferior-crashing/TestInferiorCrashing.py (original)
+++ lldb/trunk/test/functionalities/inferior-crashing/TestInferiorCrashing.py Fri Jan 4 17:27:36 2013
@@ -39,14 +39,19 @@
self.runCmd("run", RUN_SUCCEEDED)
+ if sys.platform.startswith("darwin"):
+ stop_reason = 'stop reason = EXC_BAD_ACCESS'
+ else:
+ stop_reason = 'stop reason = invalid address'
+
# The stop reason of the thread should be a bad access exception.
self.expect("thread list", STOPPED_DUE_TO_EXC_BAD_ACCESS,
substrs = ['stopped',
- 'stop reason = EXC_BAD_ACCESS'])
+ stop_reason])
# And it should report the correct line number.
self.expect("thread backtrace all",
- substrs = ['stop reason = EXC_BAD_ACCESS',
+ substrs = [stop_reason,
'main.c:%d' % self.line])
def inferior_crashing_python(self):
More information about the lldb-commits
mailing list