From 7c121311ad39c86ff50864cffd0854ded0a0e9f3 Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Tue, 12 May 2020 10:37:04 +0200 Subject: [PATCH] [gdb/testsuite] Fix duplicate test-names in gdb.pascal In gdb.pascal we have these duplicates: ... DUPLICATE: gdb.pascal/gdb11492.exp: next DUPLICATE: gdb.pascal/gdb11492.exp: print char_array ... Fix these by using with_test_prefix. Tested on x86_64-linux. gdb/testsuite/ChangeLog: 2020-05-12 Tom de Vries * gdb.pascal/gdb11492.exp: Use with_test_prefix. --- gdb/testsuite/ChangeLog | 4 ++++ gdb/testsuite/gdb.pascal/gdb11492.exp | 8 ++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index b76359e4867..6708eb4871f 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2020-05-12 Tom de Vries + + * gdb.pascal/gdb11492.exp: Use with_test_prefix. + 2020-05-12 Tom de Vries * gdb.gdb/complaints.exp: Use with_test_prefix. diff --git a/gdb/testsuite/gdb.pascal/gdb11492.exp b/gdb/testsuite/gdb.pascal/gdb11492.exp index a5a922ea912..fae6cd218f2 100644 --- a/gdb/testsuite/gdb.pascal/gdb11492.exp +++ b/gdb/testsuite/gdb.pascal/gdb11492.exp @@ -46,7 +46,11 @@ gdb_test "print /d char_array" { = \{50, 51, 52, 53, 54, 55, 56, 57\}} gdb_test "print /x char_array" { = \{0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39\}} # Use next two times to avoid GPC line numbering problem gdb_test "next" "" -gdb_test "next" "" -gdb_test "print char_array" " = '2345X789'" +with_test_prefix "second" { + gdb_test "next" "" +} +with_test_prefix "after assignment" { + gdb_test "print char_array" " = '2345X789'" +} gdb_exit -- 2.30.2