diff options
author | Andrew Burgess <andrew.burgess@embecosm.com> | 2021-03-08 17:14:36 +0000 |
---|---|---|
committer | Andrew Burgess <andrew.burgess@embecosm.com> | 2021-03-12 12:18:33 +0000 |
commit | 93598ea43dc26c3e427b046a1a2d07e13366e248 (patch) | |
tree | f70d9f7d79cc6665acb8532485671ac8eb7451f4 | |
parent | f35d6971cdaac4ee06f12e0df3b00500dc45c836 (diff) | |
download | binutils-93598ea43dc26c3e427b046a1a2d07e13366e248.zip binutils-93598ea43dc26c3e427b046a1a2d07e13366e248.tar.gz binutils-93598ea43dc26c3e427b046a1a2d07e13366e248.tar.bz2 |
gdb/testsuite: make test names unique in gdb.python/py-explore.exp
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.
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.python/py-explore.exp | 58 |
2 files changed, 35 insertions, 28 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index a4ad101..9582b80 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,10 @@ 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. 2021-03-12 Andrew Burgess <andrew.burgess@embecosm.com> diff --git a/gdb/testsuite/gdb.python/py-explore.exp b/gdb/testsuite/gdb.python/py-explore.exp index 6d27b5a..1772dc0 100644 --- a/gdb/testsuite/gdb.python/py-explore.exp +++ b/gdb/testsuite/gdb.python/py-explore.exp @@ -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" + } + } + } } } |