[gdb/testsuite] Use require in gdb.dwarf2/assign-variable-value-to-register.exp
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.
This commit is contained in:
parent
6bf40ece27
commit
322ffd247e
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue