diff options
author | Tom Tromey <tom@tromey.com> | 2023-01-21 22:41:25 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-01-25 09:02:11 -0700 |
commit | 73c06197483d1dcb82d17580f60d94ebfecf7a3b (patch) | |
tree | 0428d72d316845e4d9518dd0fce136477f358f83 /gdb/testsuite/gdb.arch/powerpc-prologue-frame.exp | |
parent | 9c5221887f011a0dec54dbcdaf833e913cb68429 (diff) | |
download | gdb-73c06197483d1dcb82d17580f60d94ebfecf7a3b.zip gdb-73c06197483d1dcb82d17580f60d94ebfecf7a3b.tar.gz gdb-73c06197483d1dcb82d17580f60d94ebfecf7a3b.tar.bz2 |
Use require with istarget
This changes many tests to use require when checking 'istarget'. A
few of these conversions were already done in earlier patches.
No change was needed to 'require' to make this work, due to the way it
is written. I think the result looks pretty clear, and it has the
bonus of helping to ensure that the reason that a test is skipped is
always logged.
Diffstat (limited to 'gdb/testsuite/gdb.arch/powerpc-prologue-frame.exp')
-rw-r--r-- | gdb/testsuite/gdb.arch/powerpc-prologue-frame.exp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gdb/testsuite/gdb.arch/powerpc-prologue-frame.exp b/gdb/testsuite/gdb.arch/powerpc-prologue-frame.exp index 454b149..dd99250 100644 --- a/gdb/testsuite/gdb.arch/powerpc-prologue-frame.exp +++ b/gdb/testsuite/gdb.arch/powerpc-prologue-frame.exp @@ -13,10 +13,7 @@ # 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-*-*"] } { - verbose "Skipping powerpc back trace test." - return -} +require {istarget "powerpc-*-*"} standard_testfile .c .S set binfile [standard_output_file ${testfile}] |