]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Ensure gdb.ada/multiarray.exp runs in both modes
authorTom Tromey <tromey@adacore.com>
Mon, 19 Aug 2024 16:48:18 +0000 (10:48 -0600)
committerTom Tromey <tromey@adacore.com>
Mon, 19 Aug 2024 16:48:18 +0000 (10:48 -0600)
gdb.ada/multiarray.exp has a loop that looks like it should run the
test in both 'all' and 'minimal' encodings mode.  However, the body of
the loop doesn't actually use the 'flags' variable.  This was an
oversight in the original commit.

gdb/testsuite/gdb.ada/multiarray.exp

index 34756476ff7a69043a02f9e860ed8ac774ab94b1..9be0aaabeee20a167c296e71b8031820f9d59347 100644 (file)
@@ -22,7 +22,8 @@ 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}-${scenario}" executable {debug}] != ""} {
+    if {[gdb_compile_ada "${srcfile}" "${binfile}-${scenario}" \
+            executable $flags] != ""} {
        return -1
     }