[lldb] TestInferiorCrashing.py should check for crash reason
authorAlex Langford <alangford@apple.com>
Mon, 27 Mar 2023 21:03:12 +0000 (14:03 -0700)
committerAlex Langford <alangford@apple.com>
Tue, 28 Mar 2023 19:19:10 +0000 (12:19 -0700)
In a now-reverted series of patches, I inadvertently broke the ability
for lldb-server to explain a crash reason. To ensure that this feature
continues to work after future refactors, let's test the feature.

Differential Revision: https://reviews.llvm.org/D147001

lldb/test/API/functionalities/inferior-crashing/TestInferiorCrashing.py

index b63a09d..42d27a3 100644 (file)
@@ -64,7 +64,7 @@ class CrashingInferiorTestCase(TestBase):
         if self.platformIsDarwin():
             stop_reason = 'stop reason = EXC_BAD_ACCESS'
         elif self.getPlatform() == "linux" or self.getPlatform() == "freebsd":
-            stop_reason = 'stop reason = signal SIGSEGV'
+            stop_reason = 'stop reason = signal SIGSEGV: address not mapped to object'
         else:
             stop_reason = 'stop reason = invalid address'
         self.expect("thread list", STOPPED_DUE_TO_EXC_BAD_ACCESS,