From: Tom Tromey Date: Thu, 11 Dec 2025 21:10:18 +0000 (-0700) Subject: Use -wrap in two test cases X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2bfe4ac5571922772de2bc7c39b5810acf34a903;p=thirdparty%2Fbinutils-gdb.git 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. --- 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 "" { } }