gdb/testsuite: make test names unique in gdb.python/py-explore.exp
authorAndrew Burgess <andrew.burgess@embecosm.com>
Mon, 8 Mar 2021 17:14:36 +0000 (17:14 +0000)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Fri, 12 Mar 2021 12:18:33 +0000 (12:18 +0000)
Add a with_test_prefix to make test names unique.

gdb/testsuite/ChangeLog:

* gdb.python/py-explore.exp: Add with_test_prefix to make test
names unique.

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

index a4ad101369f8a87f3a8a65802782ea29ef0ef5e8..9582b80c703232d06f22e5f07d35e218c205c9f5 100644 (file)
@@ -1,3 +1,8 @@
+2021-03-12  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * gdb.python/py-explore.exp: Add with_test_prefix to make test
+       names unique.
+
 2021-03-12  Andrew Burgess  <andrew.burgess@embecosm.com>
 
        * gdb.python/py-finish-breakpoint.exp: Make test names unique.
index 6d27b5a6db8d4121b18ed28bfd4e2fb1d1c1be7e..1772dc0045b7db5e416c783fb764e819627d62a6 100644 (file)
@@ -446,33 +446,35 @@ gdb_test_multiple "explore type union ComplexUnion" "" {
     }
 }
 
-gdb_test_multiple "explore type cu" "" {
-    -re "'cu' is of type 'union ComplexUnion'.*[compound_type_description $CU {union}].*$CU_fields_types.*" {
-        pass "explore type union ComplexUnion"
-        gdb_test_multiple "0" "explore type union ComplexStruct field 0" {
-            -re ".*[child_compound_type_description $CU_field_0 $SS {struct/class}].*$SS_fields_types.*" {
-                pass "explore type union ComplexUnion field 0"
-                gdb_test_multiple "\0" "return to ComplexUnion from field 0" {
-                    -re ".*[compound_type_description $CU {union}].*$CU_fields_types.*" {
-                        pass "return to ComplexUnion from field 0"
-                    }
-                }
-            }
-        }
-        gdb_test_multiple "1" "explore type union ComplexUnion field 1" {
-            -re ".*[child_array_type_description $CU_field_1 $SS].*" {
-                pass "explore type union ComplexUnion field 1"
-                gdb_test_multiple "\0" "return to ComplexUnion array" {
-                    -re ".*[compound_type_description $CU {union}].*$CU_fields_types.*" {
-                        pass "return to ComplexUnion from field 1"
-                    }
-                }
-            }
-        }
-        gdb_test_multiple "\0" "return to GDB prompt from ComplexUnion type exploration" {
-            -re "$gdb_prompt" {
-                pass "return to GDB prompt from ComplexUnion type exploration"
-            }
-        }
+with_test_prefix "using 'cu'" {
+    gdb_test_multiple "explore type cu" "" {
+       -re "'cu' is of type 'union ComplexUnion'.*[compound_type_description $CU {union}].*$CU_fields_types.*" {
+           pass "explore type union ComplexUnion"
+           gdb_test_multiple "0" "explore type union ComplexStruct field 0" {
+               -re ".*[child_compound_type_description $CU_field_0 $SS {struct/class}].*$SS_fields_types.*" {
+                   pass "explore type union ComplexUnion field 0"
+                   gdb_test_multiple "\0" "return to ComplexUnion from field 0" {
+                       -re ".*[compound_type_description $CU {union}].*$CU_fields_types.*" {
+                           pass "return to ComplexUnion from field 0"
+                       }
+                   }
+               }
+           }
+           gdb_test_multiple "1" "explore type union ComplexUnion field 1" {
+               -re ".*[child_array_type_description $CU_field_1 $SS].*" {
+                   pass "explore type union ComplexUnion field 1"
+                   gdb_test_multiple "\0" "return to ComplexUnion array" {
+                       -re ".*[compound_type_description $CU {union}].*$CU_fields_types.*" {
+                           pass "return to ComplexUnion from field 1"
+                       }
+                   }
+               }
+           }
+           gdb_test_multiple "\0" "return to GDB prompt from ComplexUnion type exploration" {
+               -re "$gdb_prompt" {
+                   pass "return to GDB prompt from ComplexUnion type exploration"
+               }
+           }
+       }
     }
 }
This page took 0.0446 seconds and 4 git commands to generate.