aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2022-12-14 09:50:51 -0700
committerTom Tromey <tom@tromey.com>2023-01-13 13:18:56 -0700
commit28343f921b49dc01414615e5e8a2803ed5fb57cf (patch)
treee79f2285e939003bf5403080ddd2b42af25df186 /gdb/testsuite
parent9eeafef37295f90804e9077d919f1350007b04a4 (diff)
downloadfsf-binutils-gdb-28343f921b49dc01414615e5e8a2803ed5fb57cf.zip
fsf-binutils-gdb-28343f921b49dc01414615e5e8a2803ed5fb57cf.tar.gz
fsf-binutils-gdb-28343f921b49dc01414615e5e8a2803ed5fb57cf.tar.bz2
Use require is_elf_target
This changes some tests to use "require is_elf_target".
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/gdb.base/rtld-step.exp4
-rw-r--r--gdb/testsuite/gdb.base/sym-file.exp4
2 files changed, 2 insertions, 6 deletions
diff --git a/gdb/testsuite/gdb.base/rtld-step.exp b/gdb/testsuite/gdb.base/rtld-step.exp
index 473c6c9..99f1a82 100644
--- a/gdb/testsuite/gdb.base/rtld-step.exp
+++ b/gdb/testsuite/gdb.base/rtld-step.exp
@@ -35,9 +35,7 @@
# or for non-ELF targets. (We're not really testing or building
# shared libraries here, but having a RTLD implies having shared
# libraries on the target.)
-if { [skip_shlib_tests] || ![is_elf_target] } {
- return 0
-}
+require !skip_shlib_tests is_elf_target
# (Pretend) RTLD file names and flags:
set rtld_basename ${::gdb_test_file_name}-rtld
diff --git a/gdb/testsuite/gdb.base/sym-file.exp b/gdb/testsuite/gdb.base/sym-file.exp
index 666bf96..c4c5f74 100644
--- a/gdb/testsuite/gdb.base/sym-file.exp
+++ b/gdb/testsuite/gdb.base/sym-file.exp
@@ -29,9 +29,7 @@
# 13) Check that the execution can continue without error.
# 14) Regression test for a stale breakpoints bug.
-if {![is_elf_target]} {
- return 0
-}
+require is_elf_target
require !skip_shlib_tests