]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb/testsuite] Fix tclint errors
authorTom de Vries <tdevries@suse.de>
Fri, 17 Jul 2026 22:30:57 +0000 (00:30 +0200)
committerTom de Vries <tdevries@suse.de>
Fri, 17 Jul 2026 22:30:57 +0000 (00:30 +0200)
Fix tclint errors in a few files.

gdb/testsuite/gdb.base/var-shadowing.exp
gdb/testsuite/gdb.mi/mi-var-shadowing.exp

index 119b8c39d4a3311700e99393b9111ebe7208c178..502cbad11f6c92c3166698ec829b0b3148a726dc 100644 (file)
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 standard_testfile
-if [prepare_for_testing "failed to prepare" $testfile $srcfile] {
+if {[prepare_for_testing "failed to prepare" $testfile $srcfile]} {
     return
 }
 
-if ![runto_main] {
+if {![runto_main]} {
     return
 }
 
index 3c0dbc2884cdbde22d561be3c2fc14eb24f467d1..48a313be290354f28727c8be027e95b452e111cc 100644 (file)
@@ -17,14 +17,14 @@ load_lib mi-support.exp
 set MIFLAGS "-i=mi"
 
 gdb_exit
-if [mi_gdb_start] {
+if {[mi_gdb_start]} {
     continue
 }
 
 standard_testfile
 
 set opts {debug}
-if [build_executable ${testfile}.exp ${testfile} ${srcfile} $opts] {
+if {[build_executable ${testfile}.exp ${testfile} ${srcfile} $opts]} {
     return
 }