[gdb/testsuite] Fix XPASS with gcc-12 in gdb.base/vla-struct-fields.exp
authorTom de Vries <tdevries@suse.de>
Fri, 10 Jun 2022 06:59:05 +0000 (08:59 +0200)
committerTom de Vries <tdevries@suse.de>
Fri, 10 Jun 2022 06:59:05 +0000 (08:59 +0200)
commit6a72edd8e26c670bbdce7aeae3c0c8f793fc8612
tree344f3dddc853a99bed6d77339678f7673c7e48c7
parent84860e85919f7f09328ae1f84303435ff2e6ee64
[gdb/testsuite] Fix XPASS with gcc-12 in gdb.base/vla-struct-fields.exp

With gcc-12, I get for test-case gdb.base/vla-struct-fields.exp:
...
(gdb) print inner_vla_struct_object_size == sizeof(inner_vla_struct_object)^M
$7 = 1^M
(gdb) XPASS: gdb.base/vla-struct-fields.exp: size of inner_vla_struct_object
...

Fix this by limiting the xfailing to gcc-11 and earlier.  Also, limit the
xfailing to the equality test.

Tested on x86_64-linux.
gdb/testsuite/gdb.base/vla-struct-fields.exp