]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/testsuite/gdb.arch/e500-abi.exp
src-release.sh: Use -T0 for xz compression
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.arch / e500-abi.exp
index fb0643deb24f900fa1d9579f602679e2992bb04a..b2abb59a79c5a58338e0667a4fddcb7057d0c510 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 2003, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
+# Copyright 2003-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
 # Tests for Powerpc e500 ABI
 
 
-if $tracelevel then {
-    strace $tracelevel
-}
-
 #
 # This file uses e500-abi.c for input.
 #
 
-
-if ![istarget "powerpc-*eabispe"] then {
-    verbose "Skipping e500 abi tests."
-    return
-}
+require {istarget "powerpc-*eabispe"}
 
 set testfile "e500-abi"
 set binfile ${objdir}/${subdir}/${testfile}
@@ -37,7 +29,7 @@ set binfile ${objdir}/${subdir}/${testfile}
 set src1 ${srcdir}/${subdir}/${testfile}.c
 
 if  { [gdb_compile ${src1} ${binfile} executable {debug nowarnings}] != "" } {
-     untested e500-abi.exp
+     untested "failed to compile"
      return -1
 }
 
@@ -49,8 +41,8 @@ gdb_load ${binfile}
 # Run to `main' where we begin our tests.
 #
 
-if ![runto_main] then {
-    gdb_suppress_tests
+if {![runto_main]} {
+    return 0
 }
 
 gdb_test "b marker" "Breakpoint 2 at.*file.*e500-abi.c, line \[0-9\]+." "break marker"