From 4ca244e7db3a9302bf49558f09c3c37f028e01d9 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sat, 26 Jul 2025 15:28:34 -0600 Subject: Skip some tests with "readnow" board This series pointed out a few tests that check that a particular index is in use. It seems to me that this does not really make sense when the "readnow" board is in use, as this actually skips index creation. The tests do pass today, but by accident. This patch adds the appropriate "require" line to the tests in question. Approved-By: Simon Marchi Acked-By: Simon Marchi --- gdb/testsuite/gdb.dwarf2/debug-names-missing-cu.exp | 4 ++++ gdb/testsuite/gdb.dwarf2/debug-names-tu.exp.tcl | 4 ++++ gdb/testsuite/gdb.dwarf2/gdb-index-types-dwarf5.exp | 4 ++++ 3 files changed, 12 insertions(+) (limited to 'gdb') diff --git a/gdb/testsuite/gdb.dwarf2/debug-names-missing-cu.exp b/gdb/testsuite/gdb.dwarf2/debug-names-missing-cu.exp index d7d4fb8..1ec4a18 100644 --- a/gdb/testsuite/gdb.dwarf2/debug-names-missing-cu.exp +++ b/gdb/testsuite/gdb.dwarf2/debug-names-missing-cu.exp @@ -18,6 +18,10 @@ load_lib dwarf.exp # This test can only be run on targets which support DWARF-2 and use gas. require dwarf2_support +# This test checks that no CU is initially expanded, which is negated +# by readnow. +require !readnow + standard_testfile _start.c debug-names.S set func_info_vars \ diff --git a/gdb/testsuite/gdb.dwarf2/debug-names-tu.exp.tcl b/gdb/testsuite/gdb.dwarf2/debug-names-tu.exp.tcl index 60d1d0d..4950458 100644 --- a/gdb/testsuite/gdb.dwarf2/debug-names-tu.exp.tcl +++ b/gdb/testsuite/gdb.dwarf2/debug-names-tu.exp.tcl @@ -18,6 +18,10 @@ load_lib dwarf.exp # This test can only be run on targets which support DWARF-2 and use gas. require dwarf2_support +# When using readnow, the index isn't used, which invalidates this +# test. +require !readnow + standard_testfile _start.c debug-names.S set func_info_vars \ diff --git a/gdb/testsuite/gdb.dwarf2/gdb-index-types-dwarf5.exp b/gdb/testsuite/gdb.dwarf2/gdb-index-types-dwarf5.exp index effa127..a47d73a 100644 --- a/gdb/testsuite/gdb.dwarf2/gdb-index-types-dwarf5.exp +++ b/gdb/testsuite/gdb.dwarf2/gdb-index-types-dwarf5.exp @@ -13,6 +13,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . +# This test checks that .gdb_index is in use, which isn't the case +# with readnow. +require !readnow + standard_testfile set flags {} -- cgit v1.1