]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/testsuite/gdb.arch/riscv64-unwind-prologue-with-ld-lw.exp
Regenerate configure files in ld sub-directory
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.arch / riscv64-unwind-prologue-with-ld-lw.exp
index f559c3ff4bc08f6d6140bc1e2784fc0b8fbda4b0..36762f195b4315e94cbeefce6130c5aefc4862ff 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 2021 Free Software Foundation, Inc.
+# Copyright 2021-2024 Free Software Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
 # This tests GDB's ability to use the RISC-V prologue scanner in order to
 # unwind through a function that uses the 'ld' instruction in its prologue.
 
-if {![istarget "riscv64-*-*"]} {
-    verbose "Skipping ${gdb_test_file_name}."
-    return
-}
+require {istarget "riscv64-*-*"}
 
 standard_testfile riscv64-unwind-prologue-with-ld-lw.c \
                  riscv64-unwind-prologue-with-ld-lw-foo.s
@@ -28,8 +25,7 @@ if {[prepare_for_testing "failed to prepare" $testfile \
     return -1
 }
 
-if ![runto_main] then {
-    fail "can't run to main"
+if {![runto_main]} {
     return 0
 }