[binutils-gdb] [gdb/testsuite] Fix tclint errors from recent commits

Tom de Vries vries@sourceware.org
Wed Feb 4 14:28:48 GMT 2026


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d519975dfe3152b4f3307e2da6ad776a3597b58e

commit d519975dfe3152b4f3307e2da6ad776a3597b58e
Author: Tom de Vries <tdevries@suse.de>
Date:   Wed Feb 4 15:28:44 2026 +0100

    [gdb/testsuite] Fix tclint errors from recent commits
    
    Recent commits introduced some tclint errors.  Fix these.
    
    Tested on x86_64-linux.

Diff:
---
 gdb/testsuite/gdb.cp/step-and-next-inline.exp | 2 +-
 gdb/testsuite/gdb.opt/empty-inline-cxx.exp    | 4 ++--
 gdb/testsuite/gdb.opt/empty-inline.exp        | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/gdb/testsuite/gdb.cp/step-and-next-inline.exp b/gdb/testsuite/gdb.cp/step-and-next-inline.exp
index d5d33856325..08694a67afb 100644
--- a/gdb/testsuite/gdb.cp/step-and-next-inline.exp
+++ b/gdb/testsuite/gdb.cp/step-and-next-inline.exp
@@ -257,7 +257,7 @@ proc do_test { use_header } {
 
     clean_restart ${executable}
 
-    if ![runto_main] {
+    if {![runto_main]} {
 	return
     }
 
diff --git a/gdb/testsuite/gdb.opt/empty-inline-cxx.exp b/gdb/testsuite/gdb.opt/empty-inline-cxx.exp
index 6d20952d4d4..60fa4c777b8 100644
--- a/gdb/testsuite/gdb.opt/empty-inline-cxx.exp
+++ b/gdb/testsuite/gdb.opt/empty-inline-cxx.exp
@@ -15,8 +15,8 @@
 
 standard_testfile .cc
 
-require {expr ![test_compiler_info gcc* c++] \
-	     || [supports_statement_frontiers] }
+require {expr {![test_compiler_info gcc* c++] \
+		   || [supports_statement_frontiers]} }
 
 set options {c++ debug optimize=-Og}
 lappend_include_file options $srcdir/lib/attributes.h
diff --git a/gdb/testsuite/gdb.opt/empty-inline.exp b/gdb/testsuite/gdb.opt/empty-inline.exp
index b84bde5db06..906ec2d9e10 100644
--- a/gdb/testsuite/gdb.opt/empty-inline.exp
+++ b/gdb/testsuite/gdb.opt/empty-inline.exp
@@ -30,8 +30,8 @@
 
 standard_testfile
 
-require {expr ![test_compiler_info gcc* c++] \
-	     || [supports_statement_frontiers] }
+require {expr {![test_compiler_info gcc* c++] \
+		   || [supports_statement_frontiers] }}
 
 set options {debug nowarnings optimize=-O2}
 lappend_include_file options $srcdir/lib/attributes.h


More information about the Gdb-cvs mailing list