25 lines · plain
1# This checks that lldb returns an error if process save-core is called2# with a plugin that does not exist.3 4# RUN: %clang_host -g %S/Inputs/main.c -o %t5# RUN: %lldb %t -o "settings set interpreter.stop-command-source-on-error false" -s %s -o exit 2>&1 | FileCheck %s6 7b main8# CHECK-LABEL: b main9# CHECK: Breakpoint 1: where = {{.*}}`main10 11run12# CHECK-LABEL: run13# CHECK: Process {{.*}} stopped14# CHECK: stop reason = breakpoint 115# CHECK: frame #0: {{.*}}`main at main.c16 17process save-core --plugin-name=minidump18# CHECK-LABEL: process save-core --plugin-name=minidump19# CHECK: error: 'process save-core' takes one arguments:20# CHECK: Usage: {{.*}} FILE21 22process save-core --plugin-name=notaplugin dump23# CHECK-LABEL: process save-core --plugin-name=notaplugin dump24# CHECK: error: plugin name 'notaplugin' is not a valid ObjectFile plugin name. Valid names are:{{.*}}minidump{{.*}}25