summaryrefslogtreecommitdiff
path: root/lldb/test/Shell
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@fb.com>2021-12-28 11:02:50 -0800
committerGreg Clayton <gclayton@fb.com>2021-12-28 11:03:09 -0800
commit48207b2559c6b012ce167f2e76acea39e9d405cf (patch)
tree6ebe9fc708ef8c856cc885b0e079ce3f91a5fed2 /lldb/test/Shell
parenta2154b19515304f42000160bed820630c3780db8 (diff)
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
Diffstat (limited to 'lldb/test/Shell')
-rw-r--r--lldb/test/Shell/Settings/TestSettingsSet.test5
1 files changed, 5 insertions, 0 deletions
diff --git a/lldb/test/Shell/Settings/TestSettingsSet.test b/lldb/test/Shell/Settings/TestSettingsSet.test
index 3006a694a16b..8e90c00c77c2 100644
--- a/lldb/test/Shell/Settings/TestSettingsSet.test
+++ b/lldb/test/Shell/Settings/TestSettingsSet.test
@@ -3,6 +3,11 @@
# 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