Fix gdb.fortran "failed to extract expected results" errors
authorKeith Seitz <keiths@redhat.com>
Mon, 28 Feb 2022 15:31:32 +0000 (07:31 -0800)
committerKeith Seitz <keiths@redhat.com>
Mon, 28 Feb 2022 15:31:32 +0000 (07:31 -0800)
commite008305278cb42a576107cd8aa9f0b182eea1af2
tree57ea312a37b98701323d2ba62266e81f07496789
parentcb7da2a640c405e0658c135b3ab2ac5be2fdc53a
Fix gdb.fortran "failed to extract expected results" errors

When running the gdb.fortran tests array-slices.exp and lbound-ubound.exp,
the test suite throws several ERRORs on native-gdbserver/-m{32,64},
and native-extended-gdbsever/-m{32,64}:

[on native-extended-gdbserver/-m64]
Running /home/keiths/work/gdb/branches/testsuite-errors/linux/gdb/testsuite/../../../src/gdb/testsuite/gdb.fortran/array-slices.exp ...
ERROR: failed to extract expected results
ERROR: failed to extract expected results
Running /home/keiths/work/gdb/branches/testsuite-errors/linux/gdb/testsuite/../../../src/gdb/testsuite/gdb.fortran/lbound-ubound.exp ...
ERROR: failed to extract expected results for lbound

This occurs because the tests require inferior I/O which we do not have
access to while using these targets.

This patch skips these tests when running on non-native targets.
gdb/testsuite/gdb.fortran/array-slices.exp
gdb/testsuite/gdb.fortran/lbound-ubound.exp