diff options
| author | Med Ismail Bennani <medismail.bennani@gmail.com> | 2022-08-03 16:45:48 -0700 |
|---|---|---|
| committer | Med Ismail Bennani <medismail.bennani@gmail.com> | 2022-08-09 21:01:37 -0700 |
| commit | a07a75180c01a3f262b02f69ee5722080da74b84 (patch) | |
| tree | 817a59d560a8a16272b81873c25d099428b957ce /lldb/test/Shell/ScriptInterpreter/Python | |
| parent | a633c5e11b4443000aa199a2df41eda4e2c6851b (diff) | |
| download | llvm-a07a75180c01a3f262b02f69ee5722080da74b84.zip llvm-a07a75180c01a3f262b02f69ee5722080da74b84.tar.gz llvm-a07a75180c01a3f262b02f69ee5722080da74b84.tar.bz2 | |
[lldb/crashlog] Surface error using SBCommandReturnObject argument
This patch allows the crashlog script to surface its errors to lldb by
using the provided SBCommandReturnObject argument.
rdar://95048193
Differential Revision: https://reviews.llvm.org/D129614
Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
Diffstat (limited to 'lldb/test/Shell/ScriptInterpreter/Python')
| -rw-r--r-- | lldb/test/Shell/ScriptInterpreter/Python/Crashlog/interactive_crashlog_invalid_target.test | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lldb/test/Shell/ScriptInterpreter/Python/Crashlog/interactive_crashlog_invalid_target.test b/lldb/test/Shell/ScriptInterpreter/Python/Crashlog/interactive_crashlog_invalid_target.test new file mode 100644 index 0000000..51b1221 --- /dev/null +++ b/lldb/test/Shell/ScriptInterpreter/Python/Crashlog/interactive_crashlog_invalid_target.test @@ -0,0 +1,8 @@ +# REQUIRES: python, native && target-aarch64 && system-darwin + +# RUN: %lldb -o 'command script import lldb.macosx.crashlog' \ +# RUN: -o 'crashlog -a -i -t /this_file_does_not_exist %S/Inputs/interactive_crashlog/multithread-test.ips' 2>&1 | FileCheck %s + +# CHECK: "crashlog" {{.*}} commands have been installed, use the "--help" options on these commands + +# CHECK: error: couldn't create target provided by the user (/this_file_does_not_exist) |
