gdb/testsuite: make test names unique in gdb.python/py-explore-cc.exp
authorAndrew Burgess <andrew.burgess@embecosm.com>
Mon, 8 Mar 2021 18:08:36 +0000 (18:08 +0000)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Fri, 12 Mar 2021 12:18:33 +0000 (12:18 +0000)
Add additional text to some test names to make them unique.  In one
case, correct the test name (copy & paste error) to make it correctly
reflect what the test is doing.

gdb/testsuite/ChangeLog:

* gdb.python/py-explore-cc.exp: Extend test names to make them
unique.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.python/py-explore-cc.exp

index ba9a5e0ac23d84e235428437dc7741d7111f3b74..1a3d58009c7da9950030011e0cf0042507a35b57 100644 (file)
@@ -1,3 +1,8 @@
+2021-03-12  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * gdb.python/py-explore-cc.exp: Extend test names to make them
+       unique.
+
 2021-03-12  Andrew Burgess  <andrew.burgess@embecosm.com>
 
        * gdb.python/py-lookup-type.exp: Remove duplicate test.
index 076df669b0090506dd96ed8e58c8f8f4e842735e..49e70362c8fa959512246b7e3d82154af5da12c4 100644 (file)
@@ -66,7 +66,7 @@ gdb_test_multiple "explore b" "" {
         pass "explore b"
         gdb_test_multiple "0" "explore_base_class_A" {
             -re "The value of 'b\.A' is a struct/class of type 'A' with no fields\." {
-                pass "explore_base_class_A"
+                pass "explore_base_class_A, exploring b"
                 gdb_test_multiple "\0" "return_to_b_from_A" {
                     -re ".*$b_desc.*Enter the field number of choice:.*" {
                         pass "return_to_b_from_A"
@@ -85,7 +85,7 @@ gdb_test_multiple "explore b" "" {
                                 pass "explore_field_c_of_b"
                                 gdb_test_multiple "\0" "return_to_b_from_c" {
                                     -re "$b_desc.*Enter the field number of choice:.*" {
-                                        pass "return_to_b_from_i"
+                                        pass "return_to_b_from_c"
                                     }
                                 }
                             }
@@ -107,7 +107,7 @@ gdb_test_multiple "explore B" "" {
         pass "explore B"
         gdb_test_multiple "0" "explore_base_class_A" {
             -re "base class 'A' of 'B' is a struct/class of type 'A' with no fields\." {
-                pass "explore_base_class_A"
+                pass "explore_base_class_A, exploring B"
                 gdb_test_multiple "\0" "return_to_B" {
                     -re "$B_desc.*Enter the field number of choice:.*" {
                         pass "return_to_B"
@@ -116,7 +116,7 @@ gdb_test_multiple "explore B" "" {
                                 pass "explore_field_i_of_B"
                                 gdb_test_multiple "\0" "return_to_B_from_i" {
                                     -re "$B_desc.*Enter the field number of choice:.*" {
-                                        pass "return_to_B_from_i"
+                                        pass "return_to_B_from_i, exploring B"
                                     }
                                 }
                             }