summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.ada/rec_ptype.exp
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2022-07-19 13:14:16 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2022-07-22 15:42:20 -0400
commit5ae3df226b1b1e45b9326a5eee81b92489ae52f2 (patch)
tree3a381e27fcd8c27b6aeb95092c8ff43d2959b1be /gdb/testsuite/gdb.ada/rec_ptype.exp
parent4a570176b4031de847c2b6067798d67006c1e8f5 (diff)
downloadbinutils-gdb-5ae3df226b1b1e45b9326a5eee81b92489ae52f2.tar.gz
gdb/testsuite: give binaries distinct names in Ada tests
Some Ada tests repeat their test sequence with different gnat-encodings, typically "all" and "minimal". However, they give the same name to both binaries, meaning the second run overwrites the binary of the first run. This makes it difficult and confusing when trying to reproduce problems manually with the test artifacts. Change those tests to use unique names for each pass. Change-Id: Iaa3c9f041241249a7d67392e785c31aa189dcc88
Diffstat (limited to 'gdb/testsuite/gdb.ada/rec_ptype.exp')
-rw-r--r--gdb/testsuite/gdb.ada/rec_ptype.exp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.ada/rec_ptype.exp b/gdb/testsuite/gdb.ada/rec_ptype.exp
index 0128b230e48..dfeb41e689a 100644
--- a/gdb/testsuite/gdb.ada/rec_ptype.exp
+++ b/gdb/testsuite/gdb.ada/rec_ptype.exp
@@ -25,11 +25,11 @@ standard_ada_testfile main
foreach_with_prefix scenario {all minimal} {
set flags [list debug additional_flags=-fgnat-encodings=$scenario]
- if {[gdb_compile_ada "${srcfile}" "${binfile}" executable $flags] != ""} {
+ if {[gdb_compile_ada "${srcfile}" "${binfile}-${scenario}" executable $flags] != ""} {
return -1
}
- clean_restart ${testfile}
+ clean_restart ${testfile}-${scenario}
set bp_location [gdb_get_line_number "STOP" ${testdir}/main.adb]
runto "main.adb:$bp_location"