[Bug 37429] New: [lldbsuite] When the LLDB HandleCommand crashes, the lldbsuite crashes as well rather than failing the test

Bug ID 37429
Summary [lldbsuite] When the LLDB HandleCommand crashes, the lldbsuite crashes as well rather than failing the test
Product lldb
Version 6.0
Hardware PC
OS Windows NT
Status NEW
Severity enhancement
Priority P
Component All Bugs
Assignee lldb-dev@lists.llvm.org
Reporter stilis@microsoft.com
CC llvm-bugs@lists.llvm.org

For example (on Windows), if assertions are enabled, the test
ExprCommandCallOverriddenMethod crashes when HandleCommand is called inside
runCmd in lldbtest.py. Rather than recording the failure, lldbsuite crashes
this process altogether and the result from the test is not recorded.

A simple try/except doesn't work in this case, so it is likely that to truly
fix this, HandleCommand needs to be called in a separate process, so that its
crash doesn't crash the running test process.