aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2023-06-17 12:28:58 +0200
committerTom de Vries <tdevries@suse.de>2023-06-17 12:28:58 +0200
commit09ea7c9c49ec1a94c8107cd2c1dd303d158b218d (patch)
treebf005097c85716e509c3af7ee1993e17e3b3b871 /gdb
parent6a4058a60683ea096683d441cb78e3ad686f134f (diff)
downloadgdb-09ea7c9c49ec1a94c8107cd2c1dd303d158b218d.zip
gdb-09ea7c9c49ec1a94c8107cd2c1dd303d158b218d.tar.gz
gdb-09ea7c9c49ec1a94c8107cd2c1dd303d158b218d.tar.bz2
[gdb/testsuite] Use require in gdb.dwarf2/implptr.exp
In test-case gdb.dwarf2/implptr.exp I noticed: ... } elseif {![is_x86_like_target]} { # This test can only be run on x86 targets. unsupported "needs x86-like target" return 0 } ... Use instead "require is_x86_like_target". Tested on x86_64-linux.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/gdb.dwarf2/implptr.exp7
1 files changed, 3 insertions, 4 deletions
diff --git a/gdb/testsuite/gdb.dwarf2/implptr.exp b/gdb/testsuite/gdb.dwarf2/implptr.exp
index 70d86dd..71fb1e4 100644
--- a/gdb/testsuite/gdb.dwarf2/implptr.exp
+++ b/gdb/testsuite/gdb.dwarf2/implptr.exp
@@ -19,6 +19,9 @@ load_lib dwarf.exp
# This test can only be run on targets which support DWARF-2 and use gas.
require dwarf2_support
+# This test can only be run on x86 targets.
+require is_x86_like_target
+
standard_testfile .S
set csrcfile ${testfile}.c
set opts {}
@@ -27,10 +30,6 @@ if [info exists COMPILE] {
# make check RUNTESTFLAGS='gdb.dwarf2/implptr.exp COMPILE=1 CC_FOR_TARGET=gcc\ -m32'
set srcfile ${csrcfile}
lappend opts debug optimize=-O2
-} elseif {![is_x86_like_target]} {
- # This test can only be run on x86 targets.
- unsupported "needs x86-like target"
- return 0
}
if {[prepare_for_testing "failed to prepare" ${testfile} $srcfile $opts]} {