From 802963162e97e7fb5a8491503821d8b8b38f933f Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Thu, 17 Jul 2025 22:06:38 +0200 Subject: [PATCH] [gdb/testsuite] Stabilize test name in gdb.base/style.exp With test-case gdb.base/style.exp, I get: ... PASS: gdb.base/style.exp: set width 88 ... The 88 is not a constant, it's a variable: ... gdb_test_no_output "set width $desired_width" ... which is calculated by parsing the output of "info files". When running with target board unix/-m32, I get instead: ... PASS: gdb.base/style.exp: set width 67 ... Stabilize the test name by using instead: ... PASS: gdb.base/style.exp: set width to desired width ... Tested on x86_64-linux. Approved-By: Andrew Burgess --- gdb/testsuite/gdb.base/style.exp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/gdb.base/style.exp b/gdb/testsuite/gdb.base/style.exp index 503671be8e6..514c3e87399 100644 --- a/gdb/testsuite/gdb.base/style.exp +++ b/gdb/testsuite/gdb.base/style.exp @@ -924,7 +924,8 @@ proc test_pagination_prompt_styling {} { } # Now setup the screen width. - gdb_test_no_output "set width $desired_width" + gdb_test_no_output "set width $desired_width" \ + "set width to desired width" # Re-run 'info files'. Check that the content before any # pagination prompt correctly disables styling. -- 2.47.2