]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb/testsuite] Stabilize test name in gdb.base/style.exp
authorTom de Vries <tdevries@suse.de>
Thu, 17 Jul 2025 20:06:38 +0000 (22:06 +0200)
committerTom de Vries <tdevries@suse.de>
Thu, 17 Jul 2025 20:06:38 +0000 (22:06 +0200)
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 <aburgess@redhat.com>
gdb/testsuite/gdb.base/style.exp

index 503671be8e626da0edf87a90cc7be50ae15d79e7..514c3e87399b898ade76b248c37b708c42423cd6 100644 (file)
@@ -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.