diff options
author | Nick Roberts <nickrob@snap.net.nz> | 2007-02-27 21:45:34 +0000 |
---|---|---|
committer | Nick Roberts <nickrob@snap.net.nz> | 2007-02-27 21:45:34 +0000 |
commit | 3fddb3adb460904d722c1bb9c271ff41518e369e (patch) | |
tree | a11d4f949073d2b12a8da8a75098e20066d39fb3 /gdb/testsuite/gdb.mi/mi-var-block.exp | |
parent | 93d42b302eb91d758191675dcaf3bd90323b5224 (diff) | |
download | gdb-3fddb3adb460904d722c1bb9c271ff41518e369e.zip gdb-3fddb3adb460904d722c1bb9c271ff41518e369e.tar.gz gdb-3fddb3adb460904d722c1bb9c271ff41518e369e.tar.bz2 |
* gdb.mi/mi-var-block.exp, gdb.mi/mi2-var-block.exp
* gdb.mi/mi-var-child.exp, gdb.mi/mi2-var-child.exp
* gdb.mi/mi-var-child-f.exp, gdb.mi/mi-var-cmd.exp
* gdb.mi/mi2-var-cmd.exp, gdb.mi/mi-var-display.exp
* gdb.mi/mi2-var-display.exp, gdb.mi/gdb701.exp
Revert tests to use mi_gdb_test and include value field in output
of -var-create.
Diffstat (limited to 'gdb/testsuite/gdb.mi/mi-var-block.exp')
-rw-r--r-- | gdb/testsuite/gdb.mi/mi-var-block.exp | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/gdb/testsuite/gdb.mi/mi-var-block.exp b/gdb/testsuite/gdb.mi/mi-var-block.exp index 007297d..f044ccb 100644 --- a/gdb/testsuite/gdb.mi/mi-var-block.exp +++ b/gdb/testsuite/gdb.mi/mi-var-block.exp @@ -44,7 +44,9 @@ mi_runto do_block_tests # Test: c_variable-3.2 # Desc: create cb and foo -mi_create_varobj cb cb "create local variable cb" +mi_gdb_test "-var-create cb * cb" \ + "\\^done,name=\"cb\",numchild=\"0\",value=\".*\",type=\"int\"" \ + "create local variable cb" mi_gdb_test "-var-create foo * foo" \ "&\"mi_cmd_var_create: unable to create variable object\\\\n\".*\\^error,msg=\"mi_cmd_var_create: unable to create variable object\"" \ @@ -64,7 +66,9 @@ mi_gdb_test "-var-delete foo" \ # Test: c_variable-3.3 # Desc: create foo -mi_create_varobj foo foo "create local variable foo" +mi_gdb_test "-var-create foo * foo" \ + "\\^done,name=\"foo\",numchild=\"0\",value=\".*\",type=\"int\"" \ + "create local variable foo" # step to "foo2 = 123;" mi_step_to "do_block_tests" "" "var-cmd.c" \ @@ -84,7 +88,9 @@ mi_step_to "do_block_tests" "" "var-cmd.c" \ # Test: c_variable-3.5 # Desc: create inner block foo -mi_create_varobj inner_foo foo "create local variable inner_foo" +mi_gdb_test "-var-create inner_foo * foo" \ + "\\^done,name=\"inner_foo\",numchild=\"0\",value=\".*\",type=\"int\"" \ + "create local variable inner_foo" # step to "foo2 = 0;" mi_step_to "do_block_tests" "" "var-cmd.c" \ @@ -93,7 +99,9 @@ mi_step_to "do_block_tests" "" "var-cmd.c" \ # Test: c_variable-3.6 # Desc: create foo2 -mi_create_varobj foo2 foo2 "create local variable foo2" +mi_gdb_test "-var-create foo2 * foo2" \ + "\\^done,name=\"foo2\",numchild=\"0\",value=\".*\",type=\"int\"" \ + "create local variable foo2" # Test: c_variable-3.7 # Desc: check that outer foo in scope and inner foo out of scope |