[binutils-gdb] [gdb/testsuite] Fix tclint errors

Tom de Vries via Gdb-cvs <[email protected]> Fri, 17 Jul 2026 22:31:08 +0000 (GMT)
Newsgroups gmane.comp.gdb.cvs
Message-ID <[email protected]>
https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D9ba5cdc8680d=
25789ca507a73a3ed91741ff646c

commit 9ba5cdc8680d25789ca507a73a3ed91741ff646c
Author: Tom de Vries <[email protected]>
Date:   Sat Jul 18 00:30:57 2026 +0200

    [gdb/testsuite] Fix tclint errors
   =20
    Fix tclint errors in a few files.

Diff:
---
 gdb/testsuite/gdb.base/var-shadowing.exp  | 4 ++--
 gdb/testsuite/gdb.mi/mi-var-shadowing.exp | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/gdb/testsuite/gdb.base/var-shadowing.exp b/gdb/testsuite/gdb.b=
ase/var-shadowing.exp
index 119b8c39d4a..502cbad11f6 100644
--- a/gdb/testsuite/gdb.base/var-shadowing.exp
+++ b/gdb/testsuite/gdb.base/var-shadowing.exp
@@ -14,11 +14,11 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
=20
 standard_testfile
-if [prepare_for_testing "failed to prepare" $testfile $srcfile] {
+if {[prepare_for_testing "failed to prepare" $testfile $srcfile]} {
     return
 }
=20
-if ![runto_main] {
+if {![runto_main]} {
     return
 }
=20
diff --git a/gdb/testsuite/gdb.mi/mi-var-shadowing.exp b/gdb/testsuite/gdb.=
mi/mi-var-shadowing.exp
index 3c0dbc2884c..48a313be290 100644
--- a/gdb/testsuite/gdb.mi/mi-var-shadowing.exp
+++ b/gdb/testsuite/gdb.mi/mi-var-shadowing.exp
@@ -17,14 +17,14 @@ load_lib mi-support.exp
 set MIFLAGS "-i=3Dmi"
=20
 gdb_exit
-if [mi_gdb_start] {
+if {[mi_gdb_start]} {
     continue
 }
=20
 standard_testfile
=20
 set opts {debug}
-if [build_executable ${testfile}.exp ${testfile} ${srcfile} $opts] {
+if {[build_executable ${testfile}.exp ${testfile} ${srcfile} $opts]} {
     return
 }