]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Skip some tests with "readnow" board
authorTom Tromey <tom@tromey.com>
Sat, 26 Jul 2025 21:28:34 +0000 (15:28 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 10 Sep 2025 22:05:27 +0000 (16:05 -0600)
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 <simon.marchi@efficios.com>
Acked-By: Simon Marchi <simon.marchi@efficios.com>
gdb/testsuite/gdb.dwarf2/debug-names-missing-cu.exp
gdb/testsuite/gdb.dwarf2/debug-names-tu.exp.tcl
gdb/testsuite/gdb.dwarf2/gdb-index-types-dwarf5.exp

index d7d4fb876465921b4f63dccd176b1553e6d52ddc..1ec4a18dd6d7fe1c0a64e68922cb242d4b075f1b 100644 (file)
@@ -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 \
index 60d1d0d90437feb3c668da19ff6e24afe7b412db..495045827e118766ea86526bbda9cc2122cfb318 100644 (file)
@@ -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 \
index effa12759c76a1bb9f3041ead1ba184d4c0e0d7d..a47d73aa6cf3f617f596f2b181fad6c60e8f9834 100644 (file)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
+# This test checks that .gdb_index is in use, which isn't the case
+# with readnow.
+require !readnow
+
 standard_testfile
 
 set flags {}