]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb/testsuite] Fix test names in gdb.tui/{empty,new-layout}.exp
authorTom de Vries <tdevries@suse.de>
Sat, 13 Sep 2025 10:36:33 +0000 (12:36 +0200)
committerTom de Vries <tdevries@suse.de>
Sat, 13 Sep 2025 10:36:33 +0000 (12:36 +0200)
Post-commit review [1] pointed out that this change in gdb.tui/empty.exp:
...
- eval Term::check_box [list "box $boxno"] $box
+ Term::check_box [list "box $boxno"] {*}$box
...
is incomplete because it leaves the "[list ...]" in place.

Indeed, it changes the test name like this:
...
-PASS: gdb.tui/empty.exp: src: 80x24: box 1
+PASS: gdb.tui/empty.exp: src: 80x24: {box 1}
...

Fix this by dropping the "[list ...]".

Likewise in gdb.tui/new-layout.exp.

[1] https://sourceware.org/pipermail/gdb-patches/2025-September/220863.html

gdb/testsuite/gdb.tui/empty.exp
gdb/testsuite/gdb.tui/new-layout.exp

index c6dad300d34e2ddc16b2f172bc6694a4befebddd..19196e8ecbf5b6134f58c7a1c0010808b679fbba 100644 (file)
@@ -65,7 +65,7 @@ set layouts {
 proc check_boxes {boxes} {
     set boxno 1
     foreach box $boxes {
-       Term::check_box [list "box $boxno"] {*}$box
+       Term::check_box "box $boxno" {*}$box
        incr boxno
     }
 }
index 11521b03ca3e00944abbe2f2b11628e7494407ef..6a4c68f7ebe3d1ce022afb5749065142ae57c05c 100644 (file)
@@ -81,7 +81,7 @@ set layouts \
 proc check_boxes {boxes} {
     set boxno 1
     foreach box $boxes {
-       Term::check_box [list "box $boxno"] {*}$box
+       Term::check_box "box $boxno" {*}$box
        incr boxno
     }
 }