aboutsummaryrefslogtreecommitdiff
path: root/lldb/test/Shell/ScriptInterpreter/Python
diff options
context:
space:
mode:
authorMed Ismail Bennani <medismail.bennani@gmail.com>2022-06-08 16:21:24 -0700
committerMed Ismail Bennani <medismail.bennani@gmail.com>2022-06-10 13:44:43 -0700
commit5a9fa21ce82fc04d77d52eb1255dd3cf0292d573 (patch)
treec34e716c17cffc1526860eae8f50a71099d9fdfb /lldb/test/Shell/ScriptInterpreter/Python
parent70f1021431a625985c00141329c359babecc2c29 (diff)
downloadllvm-5a9fa21ce82fc04d77d52eb1255dd3cf0292d573.zip
llvm-5a9fa21ce82fc04d77d52eb1255dd3cf0292d573.tar.gz
llvm-5a9fa21ce82fc04d77d52eb1255dd3cf0292d573.tar.bz2
[lldb/crashlog] Show help when the command is called without any argument
This patch changes the `crashlog` command behavior to print the help message if no argument was provided with the command. rdar://94576026 Differential Revision: https://reviews.llvm.org/D127362 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/no-args.test9
1 files changed, 9 insertions, 0 deletions
diff --git a/lldb/test/Shell/ScriptInterpreter/Python/Crashlog/no-args.test b/lldb/test/Shell/ScriptInterpreter/Python/Crashlog/no-args.test
new file mode 100644
index 0000000..d35e623
--- /dev/null
+++ b/lldb/test/Shell/ScriptInterpreter/Python/Crashlog/no-args.test
@@ -0,0 +1,9 @@
+# RUN: %lldb -o 'command script import lldb.macosx.crashlog' -o 'crashlog' 2>&1 | FileCheck %s
+
+# CHECK: "crashlog" {{.*}} commands have been installed, use the "--help" options on these commands
+
+# CHECK: Usage: crashlog [options] <FILE> [FILE ...]
+# CHECK: Symbolicate one or more darwin crash log files to provide source file and line
+# CHECK: Options:
+# CHECK: -h, --help show this help message and exit
+