Lines Matching refs:setting
32 # This exercises setting a value, and restoring it too. This is
37 proc test_with {setting values} {
41 "maint with test-settings $setting $val1 -- maint with test-settings $setting $val2 -- p 1" \
47 # Test "maint with" in the error case. SETTING is the "maint set
48 # test-setting" setting to exercise. TMP_VAL is the value to set the
49 # setting to. EXPECTED_RE is the expected GDB output, which should be
50 # an error of some kind. Also checks that the setting's original
53 proc test_with_error {setting tmp_val expected_re} {
56 with_test_prefix "$setting, $tmp_val" {
58 gdb_test_multiple "maint show test-settings $setting" \
60 -re "^maint show test-settings $setting\r\n" {
70 "maint with test-settings $setting $tmp_val -- p 1" \
73 gdb_test "maint show test-settings $setting" "^$org_val" \
130 # A boolean setting.
227 # Try both an unknown root setting and an unknown prefixed
228 # setting. The errors come from different locations in the
246 "Cannot use this setting with the \"with\" command"
252 "Missing setting before '--' delimiter"
254 # Check that the setting is restored even if the command throws.