[2/4] Use require with gdb_skip_stdio_test

Message ID 20230224-submit-require-fixes-v1-2-7cbcbbf613c9@tromey.com
State New
Headers
Series More uses of require |

Commit Message

Tom Tromey Feb. 24, 2023, 8:28 p.m. UTC
  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(-)
  

Patch

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