aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHafiz Abid Qadeer <abidh@codesourcery.com>2013-01-24 10:29:09 +0000
committerHafiz Abid Qadeer <abidh@codesourcery.com>2013-01-24 10:29:09 +0000
commitd7499464ec1236d0cf8cc189d13b554e2fe61748 (patch)
tree97bd0f713ca979a4350e3bdf56a62213184bf75a
parent301d206a8a27a979d0e92a97c2ea129b324f9e8b (diff)
downloadgdb-d7499464ec1236d0cf8cc189d13b554e2fe61748.zip
gdb-d7499464ec1236d0cf8cc189d13b554e2fe61748.tar.gz
gdb-d7499464ec1236d0cf8cc189d13b554e2fe61748.tar.bz2
2013-01-24 Hafiz Abid Qadeer <abidh@codesourcery.com>
PR gdb/13443 * gdb.mi/mi-var-block.exp: Make test messages unique.
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.mi/mi-var-block.exp16
2 files changed, 13 insertions, 8 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index eb6bedd..62cd554 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2013-01-24 Hafiz Abid Qadeer <abidh@codesourcery.com>
+
+ PR gdb/13443
+ * gdb.mi/mi-var-block.exp: Make test messages unique.
+
2013-01-23 Tom Tromey <tromey@redhat.com>
* gdb.dwarf2/dw2-error.exp: Pass test name to "file" test.
diff --git a/gdb/testsuite/gdb.mi/mi-var-block.exp b/gdb/testsuite/gdb.mi/mi-var-block.exp
index ddc6a89..5e7f482 100644
--- a/gdb/testsuite/gdb.mi/mi-var-block.exp
+++ b/gdb/testsuite/gdb.mi/mi-var-block.exp
@@ -51,13 +51,13 @@ mi_gdb_test "-var-create foo * foo" \
# step to "foo = 123;"
mi_step_to "do_block_tests" "" "var-cmd.c" \
[gdb_get_line_number "foo = 123;"] \
- "step at do_block_test"
+ "step at do_block_test 1"
# Be paranoid and assume 3.2 created foo
mi_gdb_test "-var-delete foo" \
"\\^error,msg=\"Variable object not found\"" \
- "delete var foo"
+ "delete var foo 1"
# Test: c_variable-3.3
@@ -67,7 +67,7 @@ mi_create_varobj "foo" "foo" "create local variable foo"
# step to "foo2 = 123;"
mi_step_to "do_block_tests" "" "var-cmd.c" \
[gdb_get_line_number "foo2 = 123;"] \
- "step at do_block_test"
+ "step at do_block_test 2"
# Test: c_variable-3.4
# Desc: check foo, cb changed
@@ -78,7 +78,7 @@ mi_gdb_test "-var-update *" \
# step to "foo = 321;"
mi_step_to "do_block_tests" "" "var-cmd.c" \
[gdb_get_line_number "foo = 321;"] \
- "step at do_block_test"
+ "step at do_block_test 3"
# Test: c_variable-3.5
# Desc: create inner block foo
@@ -87,7 +87,7 @@ mi_create_varobj "inner_foo" "foo" "create local variable inner_foo"
# step to "foo2 = 0;"
mi_step_to "do_block_tests" "" "var-cmd.c" \
[gdb_get_line_number "foo2 = 0;"] \
- "step at do_block_test"
+ "step at do_block_test 4"
# Test: c_variable-3.6
# Desc: create foo2
@@ -119,7 +119,7 @@ mi_gdb_test "-var-delete inner_foo" \
# step to "foo = 0;"
mi_step_to "do_block_tests" "" "var-cmd.c" \
[gdb_get_line_number "foo = 0;"] \
- "step at do_block_test"
+ "step at do_block_test 5"
# Test: c_variable-3.8
# Desc: check that foo2 out of scope (known gdb problem)
@@ -132,7 +132,7 @@ clear_xfail *-*-*
# step to "cb = 21;"
mi_step_to "do_block_tests" "" "var-cmd.c" \
[gdb_get_line_number "cb = 21;"] \
- "step at do_block_test"
+ "step at do_block_test 6"
# Test: c_variable-3.9
# Desc: check that only cb is in scope (known gdb problem)
@@ -159,7 +159,7 @@ mi_gdb_test "-var-update cb" \
# Done with block tests
mi_gdb_test "-var-delete foo" \
"\\^done,ndeleted=\"1\"" \
- "delete var foo"
+ "delete var foo 2"
mi_gdb_test "-var-delete foo2" \
"\\^done,ndeleted=\"1\"" \