aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.ada/enum_idx_packed.exp
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2020-11-23 20:09:50 +0100
committerTom de Vries <tdevries@suse.de>2020-11-23 20:09:50 +0100
commit891615f060ff6cf8ea5497fd5f07138a52fe4ede (patch)
tree9061ea8b722a2d9ef54117f389c8f6d101ddfb5c /gdb/testsuite/gdb.ada/enum_idx_packed.exp
parentd6ab69dd5463192c74e9aeb1ab96a35d351d1df3 (diff)
downloadgdb-891615f060ff6cf8ea5497fd5f07138a52fe4ede.zip
gdb-891615f060ff6cf8ea5497fd5f07138a52fe4ede.tar.gz
gdb-891615f060ff6cf8ea5497fd5f07138a52fe4ede.tar.bz2
[gdb/testsuite] Fix minimal encodings KPASSes
With current master I see a couple of KPASSes: ... KPASS: gdb.ada/enum_idx_packed.exp: scenario=minimal: ptype small \ (PRMS minimal encodings) ... KPASS: gdb.ada/mod_from_name.exp: scenario=minimal: print xp \ (PRMS minimal encodings) KPASS: gdb.ada/pckd_arr_ren.exp: scenario=minimal: print var \ (PRMS minimal encodings) ... The corresponding setup_kfail is called for everything before gnat 11. However, the test-cases also PASS for me with gnat-4.8, gnat-7.5.0 and gnat-8.4.0. Fix the KPASSes by limiting the setup_kfail to gnat 9 and 10. Tested on x86_64-linux. gdb/testsuite/ChangeLog: 2020-11-23 Tom de Vries <tdevries@suse.de> * gdb.ada/enum_idx_packed.exp: Limit setup_kfail to gnat 9 and 10. * gdb.ada/mod_from_name.exp: Same. * gdb.ada/pckd_arr_ren.exp: Same.
Diffstat (limited to 'gdb/testsuite/gdb.ada/enum_idx_packed.exp')
-rw-r--r--gdb/testsuite/gdb.ada/enum_idx_packed.exp5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.ada/enum_idx_packed.exp b/gdb/testsuite/gdb.ada/enum_idx_packed.exp
index 2e5a85e..f32c488 100644
--- a/gdb/testsuite/gdb.ada/enum_idx_packed.exp
+++ b/gdb/testsuite/gdb.ada/enum_idx_packed.exp
@@ -28,8 +28,9 @@ foreach_with_prefix scenario {all minimal} {
clean_restart ${testfile}
- # GNAT >= 11.0 has the needed fix here.
- if {$scenario == "minimal" && ![test_compiler_info {gcc-1[1-9]-*}]} {
+ # GNAT 9 and 10 are known to fail.
+ if {$scenario == "minimal" && ([test_compiler_info {gcc-9-*}] \
+ || [test_compiler_info {gcc-10-*}])} {
set old_compiler 1
} else {
set old_compiler 0