diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2022-07-19 13:14:16 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2022-07-22 15:42:20 -0400 |
commit | 5ae3df226b1b1e45b9326a5eee81b92489ae52f2 (patch) | |
tree | 3a381e27fcd8c27b6aeb95092c8ff43d2959b1be /gdb/testsuite/gdb.ada/var_rec_arr.exp | |
parent | 4a570176b4031de847c2b6067798d67006c1e8f5 (diff) | |
download | gdb-5ae3df226b1b1e45b9326a5eee81b92489ae52f2.zip gdb-5ae3df226b1b1e45b9326a5eee81b92489ae52f2.tar.gz gdb-5ae3df226b1b1e45b9326a5eee81b92489ae52f2.tar.bz2 |
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/var_rec_arr.exp')
-rw-r--r-- | gdb/testsuite/gdb.ada/var_rec_arr.exp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.ada/var_rec_arr.exp b/gdb/testsuite/gdb.ada/var_rec_arr.exp index 3e5a25e..030f630 100644 --- a/gdb/testsuite/gdb.ada/var_rec_arr.exp +++ b/gdb/testsuite/gdb.ada/var_rec_arr.exp @@ -25,11 +25,11 @@ standard_ada_testfile foo_na09_042 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}/foo_na09_042.adb] runto "foo_na09_042.adb:$bp_location" |