From 2bfe4ac5571922772de2bc7c39b5810acf34a903 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Thu, 11 Dec 2025 14:10:18 -0700 Subject: [PATCH] Use -wrap in two test cases Both Baris and Tom pointed out spots in recent patches where -wrap could have been used. This patch changes both the relevant tests to use it. --- gdb/testsuite/gdb.base/environ.exp | 2 +- gdb/testsuite/gdb.base/local-env.exp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gdb/testsuite/gdb.base/environ.exp b/gdb/testsuite/gdb.base/environ.exp index 091010acfda..73b8e7d3c57 100644 --- a/gdb/testsuite/gdb.base/environ.exp +++ b/gdb/testsuite/gdb.base/environ.exp @@ -42,7 +42,7 @@ gdb_test_multiple "show environment" "show environment works" -lbl { exp_continue } - -re "\r\n$gdb_prompt $" { + -re -wrap "" { } } diff --git a/gdb/testsuite/gdb.base/local-env.exp b/gdb/testsuite/gdb.base/local-env.exp index c62ea746635..77151f0b7d1 100644 --- a/gdb/testsuite/gdb.base/local-env.exp +++ b/gdb/testsuite/gdb.base/local-env.exp @@ -44,7 +44,7 @@ gdb_test_multiple "show environment" "show environment works" -lbl { exp_continue } - -re "\r\n$gdb_prompt $" { + -re -wrap "" { } } -- 2.47.3