]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Use "require" a two gdb.dwarf2 test files
authorTom Tromey <tom@tromey.com>
Fri, 31 Jan 2025 05:51:49 +0000 (22:51 -0700)
committerTom Tromey <tom@tromey.com>
Fri, 31 Jan 2025 05:51:49 +0000 (22:51 -0700)
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.

gdb/testsuite/gdb.dwarf2/debug-names-tu.exp.tcl
gdb/testsuite/gdb.dwarf2/imported-unit-bp.exp.tcl

index b688f4d7b7f55d1c86b0579f5ec65fc58e3164d5..b7ed935de505f2e1cb544bd20bca084e07338251 100644 (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
 
index 5817b2b0f53dca2b9043989f8220b39c9ae66b0b..4a103fbe70a6fe1b30b04b52d2b26eab6ff1f823 100644 (file)
 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