]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb/testsuite] Use require in gdb.dwarf2/assign-variable-value-to-register.exp
authorTom de Vries <tdevries@suse.de>
Fri, 12 Jan 2024 08:29:37 +0000 (09:29 +0100)
committerTom de Vries <tdevries@suse.de>
Fri, 12 Jan 2024 08:29:37 +0000 (09:29 +0100)
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/testsuite/gdb.dwarf2/assign-variable-value-to-register.exp

index 14f6b9022627fb34e717d12d4aa5f85b35638d3f..101ba9470def2c47e10a6295296118f16cfccdf6 100644 (file)
@@ -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