File: command-process-save-core-not-a-plugin.test

package info (click to toggle)
llvm-toolchain-21 1%3A21.1.6-3
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 2,245,028 kB
  • sloc: cpp: 7,619,726; ansic: 1,434,018; asm: 1,058,748; python: 252,740; f90: 94,671; objc: 70,685; lisp: 42,813; pascal: 18,401; sh: 8,601; ml: 5,111; perl: 4,720; makefile: 3,675; awk: 3,523; javascript: 2,409; xml: 892; fortran: 770
file content (24 lines) | stat: -rw-r--r-- 890 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# This checks that lldb returns an error if process save-core is called
# with a plugin that does not exist.

# RUN: %clang_host -g %S/Inputs/main.c -o %t
# RUN: %lldb %t -o "settings set interpreter.stop-command-source-on-error false" -s %s -o exit 2>&1 | FileCheck %s

b main
# CHECK-LABEL: b main
# CHECK: Breakpoint 1: where = {{.*}}`main

run
# CHECK-LABEL: run
# CHECK: Process {{.*}} stopped
# CHECK: stop reason = breakpoint 1
# CHECK:   frame #0: {{.*}}`main at main.c

process save-core --plugin-name=minidump
# CHECK-LABEL: process save-core --plugin-name=minidump
# CHECK: error: 'process save-core' takes one arguments:
# CHECK: Usage: {{.*}} FILE

process save-core --plugin-name=notaplugin dump
# CHECK-LABEL: process save-core --plugin-name=notaplugin dump
# CHECK: error: plugin name 'notaplugin' is not a valid ObjectFile plugin name. Valid names are:{{.*}}minidump{{.*}}