Author: Alex Langford Date: 2023-03-28T12:19:10-07:00 New Revision: 9efb4db29dcc94b32710884e5af3f4e0b38263a6
URL: https://github.com/llvm/llvm-project/commit/9efb4db29dcc94b32710884e5af3f4e0b38263a6 DIFF: https://github.com/llvm/llvm-project/commit/9efb4db29dcc94b32710884e5af3f4e0b38263a6.diff LOG: [lldb] TestInferiorCrashing.py should check for crash reason 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 Added: Modified: lldb/test/API/functionalities/inferior-crashing/TestInferiorCrashing.py Removed: ################################################################################ diff --git a/lldb/test/API/functionalities/inferior-crashing/TestInferiorCrashing.py b/lldb/test/API/functionalities/inferior-crashing/TestInferiorCrashing.py index b63a09d047024..42d27a3c41dd1 100644 --- a/lldb/test/API/functionalities/inferior-crashing/TestInferiorCrashing.py +++ b/lldb/test/API/functionalities/inferior-crashing/TestInferiorCrashing.py @@ -64,7 +64,7 @@ def inferior_crashing(self): 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, _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits