summaryrefslogtreecommitdiffstats
path: root/lldb/lit/Settings/TestSettingsSet.test
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2019-10-09 17:35:43 +0000
committerAdrian Prantl <aprantl@apple.com>2019-10-09 17:35:43 +0000
commit0115c10328281567391855766fef8fbe57a1d4cc (patch)
treef5c3232c37e50caaf5a2043e22fcebccee668bdd /lldb/lit/Settings/TestSettingsSet.test
parent44e988ab14cb387eddfeacd1493792a6aa6aee81 (diff)
downloadbcm5719-llvm-0115c10328281567391855766fef8fbe57a1d4cc.tar.gz
bcm5719-llvm-0115c10328281567391855766fef8fbe57a1d4cc.zip
Revert [test] Split LLDB tests into API, Shell & Unit
as it appears to have broken check-lldb. This reverts r374184 (git commit 22314179f0660c172514b397060fd8f34b586e82) llvm-svn: 374187
Diffstat (limited to 'lldb/lit/Settings/TestSettingsSet.test')
-rw-r--r--lldb/lit/Settings/TestSettingsSet.test15
1 files changed, 15 insertions, 0 deletions
diff --git a/lldb/lit/Settings/TestSettingsSet.test b/lldb/lit/Settings/TestSettingsSet.test
new file mode 100644
index 00000000000..0def3faaadb
--- /dev/null
+++ b/lldb/lit/Settings/TestSettingsSet.test
@@ -0,0 +1,15 @@
+# This tests setting setting values.
+
+# Check that setting an empty value with -f(orce) clears the value.
+# RUN: %lldb -b -s %s 2>&1 | FileCheck %s
+
+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
OpenPOWER on IntegriCloud