public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [pushed] [gdb/testsuite] Use require in gdb.dwarf2/assign-variable-value-to-register.exp
@ 2024-01-12  8:30 Tom de Vries
  0 siblings, 0 replies; only message in thread
From: Tom de Vries @ 2024-01-12  8:30 UTC (permalink / raw)
  To: gdb-patches

In test-case gdb.dwarf2/assign-variable-value-to-register.exp a return is
missing here after the unsupported:
...
if { ![is_x86_64_m64_target] } {
    unsupported "unsupported architecture"
}
...
and consequently on aarch64-linux I ran into an UNSUPPORTED followed by 3
FAILs.

Fix this by simply using require:
...
require is_x86_64_m64_target
...

Tested on x86_64-linux and aarch64-linux.
---
 .../gdb.dwarf2/assign-variable-value-to-register.exp          | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/gdb/testsuite/gdb.dwarf2/assign-variable-value-to-register.exp b/gdb/testsuite/gdb.dwarf2/assign-variable-value-to-register.exp
index 14f6b902262..101ba9470de 100644
--- a/gdb/testsuite/gdb.dwarf2/assign-variable-value-to-register.exp
+++ b/gdb/testsuite/gdb.dwarf2/assign-variable-value-to-register.exp
@@ -19,9 +19,7 @@
 
 # This test uses a hard-coded x86-64 DWARF register number, so restrict it to
 # x86-64.
-if { ![is_x86_64_m64_target] } {
-    unsupported "unsupported architecture"
-}
+require is_x86_64_m64_target
 
 load_lib dwarf.exp
 

base-commit: 6bf40ece270c42b0e5f90459a7dde851e3e7485d
-- 
2.35.3


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-01-12  8:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-12  8:30 [pushed] [gdb/testsuite] Use require in gdb.dwarf2/assign-variable-value-to-register.exp Tom de Vries

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).