]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[gdb/testsuite, tclint] Fix gdb.tui
authorTom de Vries <tdevries@suse.de>
Fri, 12 Sep 2025 13:04:50 +0000 (15:04 +0200)
committerTom de Vries <tdevries@suse.de>
Fri, 12 Sep 2025 13:04:50 +0000 (15:04 +0200)
commitafa2b07bde59756b7a7ca045d75cfc95f0cddac2
tree0fc345173a76b30f4bc1705222ee6ecdc9b11f7d
parent8e28eef6cdcbd86ad61325ce1e6bd563b0fad1e1
[gdb/testsuite, tclint] Fix gdb.tui

Running tclint on the test-cases in gdb.tui shows a few problems:
...
$ ( cd gdb/testsuite/gdb.tui; tclint --ignore line-length *.exp )
compact-source.exp:58:28: expression with substitutions should be enclosed by \
  braces [unbraced-expr]
compact-source.exp:60:27: expression with substitutions should be enclosed by \
  braces [unbraced-expr]
compact-source.exp:68:32: expression with substitutions should be enclosed by \
  braces [unbraced-expr]
empty.exp:68:2: eval received an argument with a substitution, unable to \
  parse its arguments [command-args]
new-layout.exp:84:2: eval received an argument with a substitution, unable \
  to parse its arguments [command-args]
source-search.exp:33:25: expression with substitutions should be enclosed by \
  braces [unbraced-expr]
wrap-line.exp:40:21: expression with substitutions should be enclosed by \
  braces [unbraced-expr]
wrap-line.exp:44:14: expression with substitutions should be enclosed by \
  braces [unbraced-expr]
wrap-line.exp:62:40: expression with substitutions should be enclosed by \
  braces [unbraced-expr]
...

Fix these.

Tested on aarch64-linux.
gdb/testsuite/gdb.tui/compact-source.exp
gdb/testsuite/gdb.tui/empty.exp
gdb/testsuite/gdb.tui/new-layout.exp
gdb/testsuite/gdb.tui/source-search.exp
gdb/testsuite/gdb.tui/wrap-line.exp