From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from barracuda.ebox.ca (barracuda.ebox.ca [96.127.255.19]) by sourceware.org (Postfix) with ESMTPS id 952343858281 for ; Tue, 19 Jul 2022 17:14:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 952343858281 X-ASG-Debug-ID: 1658250857-0c856e6b035fe150001-fS2M51 Received: from smtp.ebox.ca (smtp.ebox.ca [96.127.255.82]) by barracuda.ebox.ca with ESMTP id g8tnIc65MCdKaT7Z (version=TLSv1 cipher=AES128-SHA bits=128 verify=NO); Tue, 19 Jul 2022 13:14:17 -0400 (EDT) X-Barracuda-Envelope-From: simon.marchi@polymtl.ca X-Barracuda-RBL-Trusted-Forwarder: 96.127.255.82 Received: from simark.localdomain (192-222-157-6.qc.cable.ebox.net [192.222.157.6]) by smtp.ebox.ca (Postfix) with ESMTP id 94F95441D64; Tue, 19 Jul 2022 13:14:17 -0400 (EDT) From: Simon Marchi X-Barracuda-RBL-IP: 192.222.157.6 X-Barracuda-Effective-Source-IP: 192-222-157-6.qc.cable.ebox.net[192.222.157.6] X-Barracuda-Apparent-Source-IP: 192.222.157.6 To: gdb-patches@sourceware.org Subject: [PATCH] gdb/testsuite: give binaries distinct names in Ada tests Date: Tue, 19 Jul 2022 13:14:16 -0400 X-ASG-Orig-Subj: [PATCH] gdb/testsuite: give binaries distinct names in Ada tests Message-Id: <20220719171417.3651000-1-simon.marchi@polymtl.ca> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Barracuda-Connect: smtp.ebox.ca[96.127.255.82] X-Barracuda-Start-Time: 1658250857 X-Barracuda-Encrypted: AES128-SHA X-Barracuda-URL: https://96.127.255.19:443/cgi-mod/mark.cgi X-Barracuda-BRTS-Status: 1 X-Virus-Scanned: by bsmtpd at ebox.ca X-Barracuda-Scan-Msg-Size: 29713 X-Barracuda-Spam-Score: 1.00 X-Barracuda-Spam-Status: No, SCORE=1.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=5.0 tests=BSF_RULE7568M, BSF_RULE_7582B X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.99489 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.50 BSF_RULE_7582B Custom Rule 7582B 0.50 BSF_RULE7568M Custom Rule 7568M X-Spam-Status: No, score=-3612.8 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_QUARANTINE, KAM_DMARC_STATUS, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_SOFTFAIL, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jul 2022 17:14:25 -0000 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 --- gdb/testsuite/gdb.ada/O2_float_param.exp | 4 ++-- gdb/testsuite/gdb.ada/access_to_unbounded_array.exp | 4 ++-- gdb/testsuite/gdb.ada/arr_enum_idx_w_gap.exp | 6 +++--- gdb/testsuite/gdb.ada/array_of_symbolic_length.exp | 4 ++-- gdb/testsuite/gdb.ada/array_of_variable_length.exp | 4 ++-- gdb/testsuite/gdb.ada/array_of_variant.exp | 4 ++-- gdb/testsuite/gdb.ada/array_ptr_renaming.exp | 4 ++-- gdb/testsuite/gdb.ada/arrayparam.exp | 4 ++-- gdb/testsuite/gdb.ada/arrayptr.exp | 6 +++--- gdb/testsuite/gdb.ada/big_packed_array.exp | 4 ++-- gdb/testsuite/gdb.ada/enum_idx_packed.exp | 4 ++-- gdb/testsuite/gdb.ada/fixed_cmp.exp | 4 ++-- gdb/testsuite/gdb.ada/fixed_points.exp | 4 ++-- gdb/testsuite/gdb.ada/frame_arg_lang.exp | 4 ++-- gdb/testsuite/gdb.ada/funcall_ref.exp | 4 ++-- gdb/testsuite/gdb.ada/mi_string_access.exp | 4 ++-- gdb/testsuite/gdb.ada/mi_var_array.exp | 4 ++-- gdb/testsuite/gdb.ada/mi_var_union.exp | 4 ++-- gdb/testsuite/gdb.ada/mi_variant.exp | 4 ++-- gdb/testsuite/gdb.ada/mod_from_name.exp | 6 +++--- gdb/testsuite/gdb.ada/multiarray.exp | 4 ++-- gdb/testsuite/gdb.ada/out_of_line_in_inlined.exp | 4 ++-- gdb/testsuite/gdb.ada/packed_array.exp | 4 ++-- gdb/testsuite/gdb.ada/packed_record.exp | 4 ++-- gdb/testsuite/gdb.ada/packed_tagged.exp | 4 ++-- gdb/testsuite/gdb.ada/pckd_arr_ren.exp | 4 ++-- gdb/testsuite/gdb.ada/rec_ptype.exp | 4 ++-- gdb/testsuite/gdb.ada/same_component_name.exp | 4 ++-- gdb/testsuite/gdb.ada/set_pckd_arr_elt.exp | 4 ++-- gdb/testsuite/gdb.ada/unc_arr_ptr_in_var_rec.exp | 4 ++-- gdb/testsuite/gdb.ada/unchecked_union.exp | 4 ++-- gdb/testsuite/gdb.ada/var_rec_arr.exp | 4 ++-- gdb/testsuite/gdb.ada/variant.exp | 4 ++-- gdb/testsuite/gdb.ada/variant_record_packed_array.exp | 4 ++-- 34 files changed, 71 insertions(+), 71 deletions(-) diff --git a/gdb/testsuite/gdb.ada/O2_float_param.exp b/gdb/testsuite/gdb.ada/O2_float_param.exp index b1ccb626d85e..0c2969e0c4f8 100644 --- a/gdb/testsuite/gdb.ada/O2_float_param.exp +++ b/gdb/testsuite/gdb.ada/O2_float_param.exp @@ -24,11 +24,11 @@ foreach_with_prefix scenario {all minimal} { optimize=-O2 \ 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} runto "increment" diff --git a/gdb/testsuite/gdb.ada/access_to_unbounded_array.exp b/gdb/testsuite/gdb.ada/access_to_unbounded_array.exp index 240917bafd9e..46715edaf482 100644 --- a/gdb/testsuite/gdb.ada/access_to_unbounded_array.exp +++ b/gdb/testsuite/gdb.ada/access_to_unbounded_array.exp @@ -22,11 +22,11 @@ standard_ada_testfile foo 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 "BREAK" ${testdir}/foo.adb] runto "foo.adb:$bp_location" diff --git a/gdb/testsuite/gdb.ada/arr_enum_idx_w_gap.exp b/gdb/testsuite/gdb.ada/arr_enum_idx_w_gap.exp index fe2742e68591..f2c9451e0a9f 100644 --- a/gdb/testsuite/gdb.ada/arr_enum_idx_w_gap.exp +++ b/gdb/testsuite/gdb.ada/arr_enum_idx_w_gap.exp @@ -22,15 +22,15 @@ standard_ada_testfile foo_q418_043 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 "BREAK" ${testdir}/foo_q418_043.adb] if ![runto "foo_q418_043.adb:$bp_location" ] then { - perror "Couldn't run ${testfile}" + perror "Couldn't run ${testfile}-${scenario}" return } diff --git a/gdb/testsuite/gdb.ada/array_of_symbolic_length.exp b/gdb/testsuite/gdb.ada/array_of_symbolic_length.exp index 29faf749ee6f..a94bdd7f71fa 100644 --- a/gdb/testsuite/gdb.ada/array_of_symbolic_length.exp +++ b/gdb/testsuite/gdb.ada/array_of_symbolic_length.exp @@ -22,11 +22,11 @@ standard_ada_testfile foo 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 "BREAK" ${testdir}/foo.adb] runto "foo.adb:$bp_location" diff --git a/gdb/testsuite/gdb.ada/array_of_variable_length.exp b/gdb/testsuite/gdb.ada/array_of_variable_length.exp index 72a57fc33d2a..5547b7f1af66 100644 --- a/gdb/testsuite/gdb.ada/array_of_variable_length.exp +++ b/gdb/testsuite/gdb.ada/array_of_variable_length.exp @@ -22,11 +22,11 @@ standard_ada_testfile foo 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 "BREAK" ${testdir}/foo.adb] runto "foo.adb:$bp_location" diff --git a/gdb/testsuite/gdb.ada/array_of_variant.exp b/gdb/testsuite/gdb.ada/array_of_variant.exp index 606974ced839..3d0bc672c18c 100644 --- a/gdb/testsuite/gdb.ada/array_of_variant.exp +++ b/gdb/testsuite/gdb.ada/array_of_variant.exp @@ -43,11 +43,11 @@ proc gdb_test_with_xfail { cmd re re_xfail msg } { 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 "START" ${testdir}/p.adb] runto "p.adb:$bp_location" diff --git a/gdb/testsuite/gdb.ada/array_ptr_renaming.exp b/gdb/testsuite/gdb.ada/array_ptr_renaming.exp index cd192fc950e0..9832cdd360e1 100644 --- a/gdb/testsuite/gdb.ada/array_ptr_renaming.exp +++ b/gdb/testsuite/gdb.ada/array_ptr_renaming.exp @@ -22,11 +22,11 @@ standard_ada_testfile foo 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 "BREAK" ${testdir}/foo.adb] runto "foo.adb:$bp_location" diff --git a/gdb/testsuite/gdb.ada/arrayparam.exp b/gdb/testsuite/gdb.ada/arrayparam.exp index ff3def2d9fe5..3c6f59b662fa 100644 --- a/gdb/testsuite/gdb.ada/arrayparam.exp +++ b/gdb/testsuite/gdb.ada/arrayparam.exp @@ -25,11 +25,11 @@ standard_ada_testfile foo 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.adb] runto "foo.adb:$bp_location" diff --git a/gdb/testsuite/gdb.ada/arrayptr.exp b/gdb/testsuite/gdb.ada/arrayptr.exp index c3fb5f3d647a..6f9e2cd51a3d 100644 --- a/gdb/testsuite/gdb.ada/arrayptr.exp +++ b/gdb/testsuite/gdb.ada/arrayptr.exp @@ -22,15 +22,15 @@ standard_ada_testfile foo 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.adb] if ![runto "foo.adb:$bp_location" ] then { - perror "Couldn't run ${testfile}" + perror "Couldn't run ${testfile}-${scenario}" return } diff --git a/gdb/testsuite/gdb.ada/big_packed_array.exp b/gdb/testsuite/gdb.ada/big_packed_array.exp index e82892a420c4..cc500463e370 100644 --- a/gdb/testsuite/gdb.ada/big_packed_array.exp +++ b/gdb/testsuite/gdb.ada/big_packed_array.exp @@ -24,11 +24,11 @@ set old_gcc [expr [test_compiler_info {gcc-[0-8]-*}]] 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_ra24_010.adb] runto "foo_ra24_010.adb:$bp_location" diff --git a/gdb/testsuite/gdb.ada/enum_idx_packed.exp b/gdb/testsuite/gdb.ada/enum_idx_packed.exp index f69f13ee8e40..e827da5367b5 100644 --- a/gdb/testsuite/gdb.ada/enum_idx_packed.exp +++ b/gdb/testsuite/gdb.ada/enum_idx_packed.exp @@ -22,11 +22,11 @@ standard_ada_testfile foo 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} # GNAT 9 and 10 are known to fail. if {$scenario == "minimal" && ([test_compiler_info {gcc-9-*}] \ diff --git a/gdb/testsuite/gdb.ada/fixed_cmp.exp b/gdb/testsuite/gdb.ada/fixed_cmp.exp index a4091e256e57..5b7a061ffbd4 100644 --- a/gdb/testsuite/gdb.ada/fixed_cmp.exp +++ b/gdb/testsuite/gdb.ada/fixed_cmp.exp @@ -22,11 +22,11 @@ standard_ada_testfile fixed foreach_with_prefix gnat_encodings {all minimal} { set flags [list debug additional_flags=-fgnat-encodings=$gnat_encodings] - if {[gdb_compile_ada "${srcfile}" "${binfile}" executable $flags] != "" } { + if {[gdb_compile_ada "${srcfile}" "${binfile}-${gnat_encodings}" executable $flags] != "" } { return -1 } - clean_restart ${testfile} + clean_restart ${testfile}-${gnat_encodings} set bp_location [gdb_get_line_number "STOP" ${testdir}/fixed.adb] runto "fixed.adb:$bp_location" diff --git a/gdb/testsuite/gdb.ada/fixed_points.exp b/gdb/testsuite/gdb.ada/fixed_points.exp index fbf2fdc19265..8f32ec71742d 100644 --- a/gdb/testsuite/gdb.ada/fixed_points.exp +++ b/gdb/testsuite/gdb.ada/fixed_points.exp @@ -21,11 +21,11 @@ standard_ada_testfile fixed_points 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 "Set breakpoint here" ${testdir}/fixed_points.adb] runto "fixed_points.adb:$bp_location" diff --git a/gdb/testsuite/gdb.ada/frame_arg_lang.exp b/gdb/testsuite/gdb.ada/frame_arg_lang.exp index dcfc613ce1a8..dab46c91db4e 100644 --- a/gdb/testsuite/gdb.ada/frame_arg_lang.exp +++ b/gdb/testsuite/gdb.ada/frame_arg_lang.exp @@ -33,11 +33,11 @@ foreach_with_prefix scenario {all minimal} { additional_flags=-margs \ 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.c] runto "foo.c:$bp_location" diff --git a/gdb/testsuite/gdb.ada/funcall_ref.exp b/gdb/testsuite/gdb.ada/funcall_ref.exp index f727b71b4607..c783806d30d7 100644 --- a/gdb/testsuite/gdb.ada/funcall_ref.exp +++ b/gdb/testsuite/gdb.ada/funcall_ref.exp @@ -25,11 +25,11 @@ standard_ada_testfile foo 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.adb] runto "foo.adb:$bp_location" diff --git a/gdb/testsuite/gdb.ada/mi_string_access.exp b/gdb/testsuite/gdb.ada/mi_string_access.exp index b98a9ddef172..82fc6b66c33f 100644 --- a/gdb/testsuite/gdb.ada/mi_string_access.exp +++ b/gdb/testsuite/gdb.ada/mi_string_access.exp @@ -25,11 +25,11 @@ set MIFLAGS "-i=mi" 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 } - mi_clean_restart $binfile + mi_clean_restart $binfile-$scenario if {[mi_runto_main] < 0} { return 0 diff --git a/gdb/testsuite/gdb.ada/mi_var_array.exp b/gdb/testsuite/gdb.ada/mi_var_array.exp index 2cdcf660a28a..a0904855222a 100644 --- a/gdb/testsuite/gdb.ada/mi_var_array.exp +++ b/gdb/testsuite/gdb.ada/mi_var_array.exp @@ -28,11 +28,11 @@ foreach_with_prefix scenario {none all minimal} { lappend flags additional_flags=-fgnat-encodings=$scenario } - if {[gdb_compile_ada "${srcfile}" "${binfile}" executable $flags] != "" } { + if {[gdb_compile_ada "${srcfile}" "${binfile}-${scenario}" executable $flags] != "" } { return -1 } - mi_clean_restart $binfile + mi_clean_restart $binfile-$scenario if {[mi_runto_main] < 0} { return 0 diff --git a/gdb/testsuite/gdb.ada/mi_var_union.exp b/gdb/testsuite/gdb.ada/mi_var_union.exp index aa8bd531fc24..7a254d16c211 100644 --- a/gdb/testsuite/gdb.ada/mi_var_union.exp +++ b/gdb/testsuite/gdb.ada/mi_var_union.exp @@ -30,11 +30,11 @@ foreach_with_prefix scenario {none all minimal} { lappend flags additional_flags=-fgnat-encodings=$scenario } - if {[gdb_compile_ada "${srcfile}" "${binfile}" executable $flags] != "" } { + if {[gdb_compile_ada "${srcfile}" "${binfile}-${scenario}" executable $flags] != "" } { return -1 } - mi_clean_restart $binfile + mi_clean_restart $binfile-$scenario if {[mi_runto_main] < 0} { return 0 diff --git a/gdb/testsuite/gdb.ada/mi_variant.exp b/gdb/testsuite/gdb.ada/mi_variant.exp index 7e33fdc2dc92..e745819b8823 100644 --- a/gdb/testsuite/gdb.ada/mi_variant.exp +++ b/gdb/testsuite/gdb.ada/mi_variant.exp @@ -29,11 +29,11 @@ foreach_with_prefix scenario {none all minimal} { lappend flags additional_flags=-fgnat-encodings=$scenario } - if {[gdb_compile_ada "${srcfile}" "${binfile}" executable $flags] != ""} { + if {[gdb_compile_ada "${srcfile}" "${binfile}-${scenario}" executable $flags] != ""} { return -1 } - mi_clean_restart $binfile + mi_clean_restart $binfile-$scenario if {[mi_runto_main] < 0} { return 0 diff --git a/gdb/testsuite/gdb.ada/mod_from_name.exp b/gdb/testsuite/gdb.ada/mod_from_name.exp index bff1e09335e6..009e32d4dd1b 100644 --- a/gdb/testsuite/gdb.ada/mod_from_name.exp +++ b/gdb/testsuite/gdb.ada/mod_from_name.exp @@ -22,15 +22,15 @@ standard_ada_testfile foo 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 "START" ${testdir}/foo.adb] if ![runto "foo.adb:$bp_location" ] then { - perror "Couldn't run ${testfile}" + perror "Couldn't run ${testfile}-${scenario}" return } diff --git a/gdb/testsuite/gdb.ada/multiarray.exp b/gdb/testsuite/gdb.ada/multiarray.exp index bac16f2eee50..5a8e1eaff4a6 100644 --- a/gdb/testsuite/gdb.ada/multiarray.exp +++ b/gdb/testsuite/gdb.ada/multiarray.exp @@ -22,11 +22,11 @@ standard_ada_testfile p foreach_with_prefix scenario {all minimal} { set flags [list debug additional_flags=-fgnat-encodings=$scenario] - if {[gdb_compile_ada "${srcfile}" "${binfile}" executable {debug}] != ""} { + if {[gdb_compile_ada "${srcfile}" "${binfile}-${scenario}" executable {debug}] != ""} { return -1 } - clean_restart ${testfile} + clean_restart ${testfile}-${scenario} set bp_location [gdb_get_line_number "START" ${testdir}/p.adb] runto "p.adb:$bp_location" diff --git a/gdb/testsuite/gdb.ada/out_of_line_in_inlined.exp b/gdb/testsuite/gdb.ada/out_of_line_in_inlined.exp index db1b3b32aa5b..4bdb4decaaf2 100644 --- a/gdb/testsuite/gdb.ada/out_of_line_in_inlined.exp +++ b/gdb/testsuite/gdb.ada/out_of_line_in_inlined.exp @@ -24,11 +24,11 @@ foreach_with_prefix scenario {all minimal} { optimize=-O2 \ 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} gdb_breakpoint "foo_o224_021.child1.child2" diff --git a/gdb/testsuite/gdb.ada/packed_array.exp b/gdb/testsuite/gdb.ada/packed_array.exp index 1c049b483ea8..eb857f7e5641 100644 --- a/gdb/testsuite/gdb.ada/packed_array.exp +++ b/gdb/testsuite/gdb.ada/packed_array.exp @@ -22,11 +22,11 @@ standard_ada_testfile pa 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}/pa.adb] runto "pa.adb:$bp_location" diff --git a/gdb/testsuite/gdb.ada/packed_record.exp b/gdb/testsuite/gdb.ada/packed_record.exp index c319a348ed1a..d872907809fd 100644 --- a/gdb/testsuite/gdb.ada/packed_record.exp +++ b/gdb/testsuite/gdb.ada/packed_record.exp @@ -22,11 +22,11 @@ standard_ada_testfile pr 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}/pr.adb] runto "pr.adb:$bp_location" diff --git a/gdb/testsuite/gdb.ada/packed_tagged.exp b/gdb/testsuite/gdb.ada/packed_tagged.exp index ab05172cd9dc..bef491a54e98 100644 --- a/gdb/testsuite/gdb.ada/packed_tagged.exp +++ b/gdb/testsuite/gdb.ada/packed_tagged.exp @@ -28,11 +28,11 @@ foreach_with_prefix scenario {all minimal} { lappend flags 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}/comp_bug.adb] runto "comp_bug.adb:$bp_location" diff --git a/gdb/testsuite/gdb.ada/pckd_arr_ren.exp b/gdb/testsuite/gdb.ada/pckd_arr_ren.exp index 5dac5e13dafd..c02983857be6 100644 --- a/gdb/testsuite/gdb.ada/pckd_arr_ren.exp +++ b/gdb/testsuite/gdb.ada/pckd_arr_ren.exp @@ -22,11 +22,11 @@ standard_ada_testfile foo 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.adb] runto "foo.adb:$bp_location" diff --git a/gdb/testsuite/gdb.ada/rec_ptype.exp b/gdb/testsuite/gdb.ada/rec_ptype.exp index 0128b230e48c..dfeb41e689a5 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" diff --git a/gdb/testsuite/gdb.ada/same_component_name.exp b/gdb/testsuite/gdb.ada/same_component_name.exp index 345b2c83023b..e07d49db3b44 100644 --- a/gdb/testsuite/gdb.ada/same_component_name.exp +++ b/gdb/testsuite/gdb.ada/same_component_name.exp @@ -22,11 +22,11 @@ standard_ada_testfile foo 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_top_location [gdb_get_line_number "BREAK_TOP" ${testdir}/pck.adb] set bp_middle_location [gdb_get_line_number "BREAK_MIDDLE" ${testdir}/pck.adb] diff --git a/gdb/testsuite/gdb.ada/set_pckd_arr_elt.exp b/gdb/testsuite/gdb.ada/set_pckd_arr_elt.exp index d3e4a52a4c66..e8c468e65b34 100644 --- a/gdb/testsuite/gdb.ada/set_pckd_arr_elt.exp +++ b/gdb/testsuite/gdb.ada/set_pckd_arr_elt.exp @@ -22,11 +22,11 @@ standard_ada_testfile foo 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.adb] runto "foo.adb:$bp_location" diff --git a/gdb/testsuite/gdb.ada/unc_arr_ptr_in_var_rec.exp b/gdb/testsuite/gdb.ada/unc_arr_ptr_in_var_rec.exp index 79ae3449a333..a11a90ed32c3 100644 --- a/gdb/testsuite/gdb.ada/unc_arr_ptr_in_var_rec.exp +++ b/gdb/testsuite/gdb.ada/unc_arr_ptr_in_var_rec.exp @@ -22,11 +22,11 @@ standard_ada_testfile foo 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 "STOP1" ${testdir}/foo.adb] runto "foo.adb:$bp_location" diff --git a/gdb/testsuite/gdb.ada/unchecked_union.exp b/gdb/testsuite/gdb.ada/unchecked_union.exp index 6a9caf229cd8..a1ba4f420c7f 100644 --- a/gdb/testsuite/gdb.ada/unchecked_union.exp +++ b/gdb/testsuite/gdb.ada/unchecked_union.exp @@ -57,11 +57,11 @@ foreach_with_prefix scenario {none all minimal} { lappend flags 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 "BREAK" ${testdir}/unchecked_union.adb] runto "unchecked_union.adb:$bp_location" diff --git a/gdb/testsuite/gdb.ada/var_rec_arr.exp b/gdb/testsuite/gdb.ada/var_rec_arr.exp index 3e5a25e19a9d..030f63048cba 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" diff --git a/gdb/testsuite/gdb.ada/variant.exp b/gdb/testsuite/gdb.ada/variant.exp index 9a1f1f0974c0..828f7c3a0303 100644 --- a/gdb/testsuite/gdb.ada/variant.exp +++ b/gdb/testsuite/gdb.ada/variant.exp @@ -26,11 +26,11 @@ foreach_with_prefix scenario {none all minimal} { lappend flags 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}/pkg.adb] runto "pkg.adb:$bp_location" diff --git a/gdb/testsuite/gdb.ada/variant_record_packed_array.exp b/gdb/testsuite/gdb.ada/variant_record_packed_array.exp index da86ccc629b2..b611b6fedfc9 100644 --- a/gdb/testsuite/gdb.ada/variant_record_packed_array.exp +++ b/gdb/testsuite/gdb.ada/variant_record_packed_array.exp @@ -22,11 +22,11 @@ standard_ada_testfile foo 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 "START" ${testdir}/foo.adb] runto "foo.adb:$bp_location" base-commit: f638657759f5b9b4eb31a1aa6b9fe6e6fb01f4a0 -- 2.36.1