diff options
| author | Med Ismail Bennani <medismail.bennani@gmail.com> | 2022-08-10 16:17:19 -0700 |
|---|---|---|
| committer | Med Ismail Bennani <medismail.bennani@gmail.com> | 2022-08-10 16:18:46 -0700 |
| commit | 3f3db135251c85503fde681dd34e8ced0606aee2 (patch) | |
| tree | 7b2bb54d187d4774c952f00468a3b379f9cdad64 /lldb/test/Shell/ScriptInterpreter/Python | |
| parent | 27b1a8273dc9dc0f87fd7acc1b875e38ecd6b3bf (diff) | |
| download | llvm-3f3db135251c85503fde681dd34e8ced0606aee2.zip llvm-3f3db135251c85503fde681dd34e8ced0606aee2.tar.gz llvm-3f3db135251c85503fde681dd34e8ced0606aee2.tar.bz2 | |
[lldb/crashlog] Add `-V|--version` option
This patch introduces a new option to the crashlog command to get the
the script version.
Since `crashlog.py` is not actually versioned, this returns lldb's
version instead.
rdar://98392669
Differential Revision: https://reviews.llvm.org/D131542
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 | 3 |
1 files changed, 3 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 index 51b1221..abd1e7c 100644 --- a/lldb/test/Shell/ScriptInterpreter/Python/Crashlog/interactive_crashlog_invalid_target.test +++ b/lldb/test/Shell/ScriptInterpreter/Python/Crashlog/interactive_crashlog_invalid_target.test @@ -1,8 +1,11 @@ # REQUIRES: python, native && target-aarch64 && system-darwin # RUN: %lldb -o 'command script import lldb.macosx.crashlog' \ +# RUN: -o 'crashlog -V' \ # 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: lldb{{.*}}version + # CHECK: error: couldn't create target provided by the user (/this_file_does_not_exist) |
