From 3f3db135251c85503fde681dd34e8ced0606aee2 Mon Sep 17 00:00:00 2001 From: Med Ismail Bennani Date: Wed, 10 Aug 2022 16:17:19 -0700 Subject: [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 --- .../Python/Crashlog/interactive_crashlog_invalid_target.test | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lldb/test/Shell/ScriptInterpreter/Python') 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) -- cgit v1.1