gdb/testsuite/
authorYao Qi <yao@codesourcery.com>
Tue, 20 Nov 2012 02:55:10 +0000 (02:55 +0000)
committerYao Qi <yao@codesourcery.com>
Tue, 20 Nov 2012 02:55:10 +0000 (02:55 +0000)
2012-11-20  Yao Qi  <yao@codesourcery.com>

* gdb.mi/mi-cmd-param-changed.exp (test_command_param_changed):
Don't test 'maint set show-debug-regs'.
Use command 'set remotecache' instead of
'set circular-trace-buffer'.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.mi/mi-cmd-param-changed.exp

index 805b055bfe91ce86e14f074f05651ed8c566d9f5..04821e64d80c47c06962024c46f16a8ff1f2de98 100644 (file)
@@ -1,3 +1,10 @@
+2012-11-20  Yao Qi  <yao@codesourcery.com>
+
+       * gdb.mi/mi-cmd-param-changed.exp (test_command_param_changed):
+       Don't test 'maint set show-debug-regs'.
+       Use command 'set remotecache' instead of
+       'set circular-trace-buffer'.
+
 2012-11-16  Keith Seitz  <keiths@redhat.com>
 
        PR c++/13615
index 8c2195ccc50619a0391914e293e5ff0c45328171..7786f909b4228e2a6ac705538a96448b58524c4f 100644 (file)
@@ -52,7 +52,7 @@ proc test_command_param_changed { } { with_test_prefix "cmd param" {
        "\"set scheduler-locking stepr\" no event"
 
 
-    foreach command { "circular-trace-buffer" "check type" } {
+    foreach command { "remotecache" "check type" } {
 
        # The default value of each command option may be different, so we first
        # set it to 'off', and this may or may not trigger MI notification.
@@ -81,12 +81,10 @@ proc test_command_param_changed { } { with_test_prefix "cmd param" {
     }
 
     # No notification is emitted for 'maint set' commands.
-    foreach command { "profile" "show-debug-regs" } {
-       foreach boolean_opt { "on" "off" } {
-           mi_gdb_test "maint set ${command} ${boolean_opt}" \
-               "\\&\"maint set ${command} ${boolean_opt}\\\\n\"\r\n\\^done" \
-               "\"maint set ${command} ${boolean_opt}\""
-       }
+    foreach boolean_opt { "on" "off" } {
+       mi_gdb_test "maint set profile ${boolean_opt}" \
+           "\\&\"maint set profile ${boolean_opt}\\\\n\"\r\n\\^done" \
+           "\"maint set profile ${boolean_opt}\""
     }
 
     # Full command parameters are included in the notification when a