From b8d7ef3f67a3022c06408f730d3a15a0e6d49a01 Mon Sep 17 00:00:00 2001
From: Tom Tromey <tom@tromey.com>
Date: Wed, 22 Feb 2023 14:50:00 -0700
Subject: [PATCH] Use require with gdb_skip_stdio_test

One use of gdb_skip_stdio_test can use 'require'.
---
 gdb/testsuite/gdb.base/a2-run.exp | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/gdb/testsuite/gdb.base/a2-run.exp b/gdb/testsuite/gdb.base/a2-run.exp
index d5d4d9ef19e..08f6599c84a 100644
--- a/gdb/testsuite/gdb.base/a2-run.exp
+++ b/gdb/testsuite/gdb.base/a2-run.exp
@@ -16,9 +16,7 @@
 # This file was written by Rob Savoye. (rob@cygnus.com)
 
 # Can't do this test without stdio support.
-if [gdb_skip_stdio_test "a2run.exp"] {
-    return
-}
+require {!gdb_skip_stdio_test "a2run.exp"}
 
 #
 # test running programs
-- 
GitLab