Use "require" a two gdb.dwarf2 test files

A couple of ".tcl" files in gdb.dwarf2 escaped notice during the
"require" refactoring.  This patch fixes these to use "require" rather
than if/return.
This commit is contained in:
Tom Tromey 2025-01-30 22:51:49 -07:00
parent 36e173e092
commit 114434a1f1
2 changed files with 3 additions and 9 deletions

View File

@ -16,9 +16,7 @@
load_lib dwarf.exp
# This test can only be run on targets which support DWARF-2 and use gas.
if {![dwarf2_support]} {
return 0
}
require dwarf2_support
standard_testfile _start.c debug-names.S

View File

@ -18,14 +18,10 @@
load_lib dwarf.exp
# This test can only be run on targets which support DWARF-2 and use gas.
if {![dwarf2_support]} {
return 0
}
require dwarf2_support
# The .c files use __attribute__.
if ![is_c_compiler_gcc] {
return 0
}
require is_c_compiler_gcc
standard_testfile imported-unit-bp-alt.c .S imported-unit-bp-main.c