]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/testsuite/gdb.arch/ppc-longdouble.exp
x86: Fix typo in i386-dis-evex-mod.h
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.arch / ppc-longdouble.exp
index 3a8800ed5cd2e9f49ad2aba2a900df3f12fbe7be..f9345feb06507ae4e844a4ea7c8204e3a3907134 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 2016-2019 Free Software Foundation, Inc.
+# Copyright 2016-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
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if ![istarget "powerpc*"] then {
-    verbose "Skipping powerpc long-double floating point tests."
-    return
-}
+require {istarget "powerpc*"}
 
 standard_testfile
 
@@ -27,19 +24,19 @@ proc do_test { name {opts {}} } {
     set lines [gdb_compile "${srcdir}/${subdir}/${srcfile}" "$binfile.$name" executable $ccopts]
     # We get this warning even with the nowarnings option ...
     regsub -all "(^|\n)\[^\n\]*using \[^\n\]* extended precision long double" $lines "" lines
-    if { $lines != "" } then {
+    if {$lines != ""} {
         return
     }
 
     clean_restart ${binfile}.${name}
 
-    if ![runto_main] then {
+    if {![runto_main]} {
         return
     }
 
     # Run to the breakpoint at return.
     gdb_breakpoint [gdb_get_line_number "return"]
-    gdb_continue_to_breakpoint "return"
+    gdb_continue_to_breakpoint "return test: $name"
 
     # Print the value of ld
     gdb_test "print ld" ".* = 1\\.375.*" "the value of ld is 1.375 ($name)"