Files
clang-p2996/lldb/test/Shell/Settings/TestSettingsSet.test
Greg Clayton 48207b2559 Fix "settings set -g" so it works again.
When we switched options over to use the Options.td file, a bug was introduced that caused the "-g" option for "settings set" to require a filename arguemnt. This patch fixes this issue and adds a test so this doesn't regress.

Reviewed By: JDevlieghere

Differential Revision: https://reviews.llvm.org/D116012
2021-12-28 11:03:09 -08:00

21 lines
591 B
Plaintext

# This tests setting setting values.
# Check that setting an empty value with -f(orce) clears the value.
# RUN: not %lldb -b -s %s 2>&1 | FileCheck %s
# Make sure that "settings set -g" no longer requires a bogus filename.
settings set -g target.skip-prologue false
settings show target.skip-prologue
# CHECK: target.skip-prologue (boolean) = false
settings set tab-size 16
settings show tab-size
# CHECK: tab-size (unsigned) = 16
settings set -f tab-size
settings show tab-size
# CHECK: tab-size (unsigned) = 4
settings set tab-size
# CHECK: error: 'settings set' takes more arguments