aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.pascal
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2020-05-12 10:37:04 +0200
committerTom de Vries <tdevries@suse.de>2020-05-12 10:37:04 +0200
commit7c121311ad39c86ff50864cffd0854ded0a0e9f3 (patch)
treea9174d05f25f34552b71d527b3118489901e5517 /gdb/testsuite/gdb.pascal
parentc9f3b40e1ad5ea299e7725951bb78222fefcdf51 (diff)
downloadgdb-7c121311ad39c86ff50864cffd0854ded0a0e9f3.zip
gdb-7c121311ad39c86ff50864cffd0854ded0a0e9f3.tar.gz
gdb-7c121311ad39c86ff50864cffd0854ded0a0e9f3.tar.bz2
[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 <tdevries@suse.de> * gdb.pascal/gdb11492.exp: Use with_test_prefix.
Diffstat (limited to 'gdb/testsuite/gdb.pascal')
-rw-r--r--gdb/testsuite/gdb.pascal/gdb11492.exp8
1 files changed, 6 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.pascal/gdb11492.exp b/gdb/testsuite/gdb.pascal/gdb11492.exp
index a5a922e..fae6cd2 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