]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb/testsuite, tclint] Fix gdb.fortran
authorTom de Vries <tdevries@suse.de>
Sat, 20 Sep 2025 12:48:57 +0000 (14:48 +0200)
committerTom de Vries <tdevries@suse.de>
Sat, 20 Sep 2025 12:48:57 +0000 (14:48 +0200)
Running tclint on the test-cases in gdb.fortran shows a few problems.

Fix these.

Tested on x86_64-linux.

50 files changed:
gdb/tclint.toml
gdb/testsuite/gdb.fortran/allocated.exp
gdb/testsuite/gdb.fortran/array-bounds.exp
gdb/testsuite/gdb.fortran/array-slices-sub-slices.exp
gdb/testsuite/gdb.fortran/array-slices.exp
gdb/testsuite/gdb.fortran/associated.exp
gdb/testsuite/gdb.fortran/assumedrank.exp
gdb/testsuite/gdb.fortran/call-no-debug.exp
gdb/testsuite/gdb.fortran/charset.exp
gdb/testsuite/gdb.fortran/class-allocatable-array.exp
gdb/testsuite/gdb.fortran/common-block.exp
gdb/testsuite/gdb.fortran/completion.exp
gdb/testsuite/gdb.fortran/debug-expr.exp
gdb/testsuite/gdb.fortran/empty-string.exp
gdb/testsuite/gdb.fortran/exprs.exp
gdb/testsuite/gdb.fortran/huge.exp
gdb/testsuite/gdb.fortran/info-main.exp
gdb/testsuite/gdb.fortran/intrinsic-precedence.exp
gdb/testsuite/gdb.fortran/intvar-array.exp
gdb/testsuite/gdb.fortran/intvar-dynamic-types.exp
gdb/testsuite/gdb.fortran/lbound-ubound.exp
gdb/testsuite/gdb.fortran/library-module.exp
gdb/testsuite/gdb.fortran/limited-length.exp
gdb/testsuite/gdb.fortran/mixed-lang-stack.exp
gdb/testsuite/gdb.fortran/module.exp
gdb/testsuite/gdb.fortran/multi-dim.exp
gdb/testsuite/gdb.fortran/namelist.exp
gdb/testsuite/gdb.fortran/nested-funcs.exp
gdb/testsuite/gdb.fortran/oop_extend_type.exp
gdb/testsuite/gdb.fortran/pointer-to-pointer.exp
gdb/testsuite/gdb.fortran/print_type.exp
gdb/testsuite/gdb.fortran/rank.exp
gdb/testsuite/gdb.fortran/shape.exp
gdb/testsuite/gdb.fortran/short-circuit-argument-list.exp
gdb/testsuite/gdb.fortran/size.exp
gdb/testsuite/gdb.fortran/sizeof.exp
gdb/testsuite/gdb.fortran/types.exp
gdb/testsuite/gdb.fortran/vla-alloc-assoc.exp
gdb/testsuite/gdb.fortran/vla-array.exp
gdb/testsuite/gdb.fortran/vla-datatypes.exp
gdb/testsuite/gdb.fortran/vla-history.exp
gdb/testsuite/gdb.fortran/vla-ptr-info.exp
gdb/testsuite/gdb.fortran/vla-ptype-sub.exp
gdb/testsuite/gdb.fortran/vla-ptype.exp
gdb/testsuite/gdb.fortran/vla-sizeof.exp
gdb/testsuite/gdb.fortran/vla-value-sub-arbitrary.exp
gdb/testsuite/gdb.fortran/vla-value-sub-finish.exp
gdb/testsuite/gdb.fortran/vla-value-sub.exp
gdb/testsuite/gdb.fortran/vla-value.exp
gdb/testsuite/gdb.fortran/whatis_type.exp

index 3b43523789f5d52587eb1b1712fff29428ec44aa..3dcfe72e4e08fe3b233839539fa19d739f6b9930 100644 (file)
@@ -25,7 +25,6 @@ exclude = [
 "gdb/testsuite/gdb.btrace",
 "gdb/testsuite/gdb.cp",
 "gdb/testsuite/gdb.dwarf2",
-"gdb/testsuite/gdb.fortran",
 "gdb/testsuite/gdb.mi",
 "gdb/testsuite/gdb.python",
 "gdb/testsuite/gdb.threads",
index a000b6e27b003e821497ca39ea7f59d4bd69d4b4..7cf1367e6e6ec10a96f335083497ced63078b6a0 100644 (file)
@@ -25,7 +25,7 @@ if {[prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} \
     return -1
 }
 
-if ![fortran_runto_main] {
+if {![fortran_runto_main]} {
     return -1
 }
 
index fb8ee864297a295dd774faadf5db39041adda0b6..9efd95fabfd4426b12863e46efd1a7c231ee4e64 100644 (file)
@@ -34,8 +34,8 @@ if {![fortran_runto_main]} {
 # GCC outputs incorrect range debug info for -m32, gcc PR debug/54934.
 set expect_xfail \
     [expr \
-        [test_compiler_info {gfortran-*} f90] \
-        && [is_ilp32_target]]
+        {[test_compiler_info {gfortran-*} f90]
+            && [is_ilp32_target]}]
 
 set re_ok [string_to_regexp (4294967296:4294967297)]
 set re_xfail [string_to_regexp (0:1)]
index 8c19c85836f37c2ad30756e4320a7211a2fa17ee..72c7c5e9addbd5ba90bd7f041c54df048b0825ea 100644 (file)
@@ -25,7 +25,7 @@ if {[prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} \
     return -1
 }
 
-if ![fortran_runto_main] {
+if {![fortran_runto_main]} {
     return -1
 }
 
@@ -53,7 +53,7 @@ gdb_test_multiple $cmd $cmd {
 # slice.
 for { set j 1 } { $j < 6 } { incr j } {
     for { set i 1 } { $i < 6 } { incr i } {
-       set val [expr ((($i - 1) * 2) + (($j - 1) * 20)) + 1]
+       set val [expr {((($i - 1) * 2) + (($j - 1) * 20)) + 1}]
        gdb_test "print ${varname} ($i,$j)" " = $val"
     }
 }
@@ -106,7 +106,7 @@ gdb_test "print str (26:1:-2)" " = 'zxvtrpnljhfdb'"
 # existing value in memory.
 gdb_test_no_output "set fortran repack-array-slices on"
 set element_size [get_integer_valueof "sizeof (array (1,1))" "unknown"]
-set slice_size [expr $element_size * 4]
+set slice_size [expr {$element_size * 4}]
 gdb_test_no_output "set max-value-size $slice_size"
 gdb_test "print array (1:2, 1:2)" "= \\(\\(1, 2\\) \\(11, 12\\)\\)"
 gdb_test "print array (2:3, 2:3)" "= \\(\\(12, 13\\) \\(22, 23\\)\\)"
index f0b649b73ef1c79033c5f596a51b14bd9fca5663..7d4f96e041c855e9b7c6cbe5347c86ab6725be9d 100644 (file)
@@ -58,7 +58,7 @@ proc run_test { repack } {
 
     clean_restart ${::testfile}
 
-    if ![fortran_runto_main] {
+    if {![fortran_runto_main]} {
        return -1
     }
 
index c900ce7ea778535671784d84f9ba25268a91b93b..929722002706108e2937396ecae48203571f1930 100644 (file)
@@ -25,7 +25,7 @@ if {[prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} \
     return -1
 }
 
-if ![fortran_runto_main] {
+if {![fortran_runto_main]} {
     return -1
 }
 
index 159608f3854b5dac25942db99cb738fec26596f1..45e8c09469b29e3ffe2e989be5f28b9928d0baf4 100644 (file)
@@ -32,7 +32,7 @@ if {[prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} \
     return -1
 }
 
-if ![fortran_runto_main] {
+if {![fortran_runto_main]} {
     untested "could not run to main"
     return -1
 }
index 75298cccb8d497fdc820ef069f1cb09e9f4878c8..96ccdd707e765a1688f4354ad8341a586fcd0eb6 100644 (file)
@@ -67,7 +67,7 @@ proc find_mangled_name { name } {
 set some_func [find_mangled_name "some_func"]
 set string_func [find_mangled_name "string_func"]
 
-if ![fortran_runto_main] {
+if {![fortran_runto_main]} {
     return -1
 }
 
index 0f5ee3d8ee0f3bcf4d1e71e960d6bc77b49dd80d..cd117d42dd5426af9b9ede43e05bed98026a742c 100644 (file)
@@ -30,7 +30,7 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug addi
     return -1
 }
 
-if ![fortran_runto_main] {
+if {![fortran_runto_main]} {
     return
 }
 
index 241cc83ade80f4541d7b167475d54d0d15c4effe..d860b2c1e1832e88e16a49eedabeb6a586dc9755 100644 (file)
@@ -26,7 +26,7 @@ if {[prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} \
     return -1
 }
 
-if ![fortran_runto_main] {
+if {![fortran_runto_main]} {
     return -1
 }
 
index 6f3e55db502d839259b59bd3ea159ba610a95065..f27f3ad3b3b084e09744448d04081c95f04ef7c0 100644 (file)
@@ -4,12 +4,12 @@
 # it under the terms of the GNU General Public License as published by
 # the Free Software Foundation; either version 3 of the License, or
 # (at your option) any later version.
-# 
+#
 # This program is distributed in the hope that it will be useful,
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 # GNU General Public License for more details.
-# 
+#
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
index 0961207fafcd461cd67b323fe7a34bd37b640c01..5038251305ddb7225a1a0f70180929cddbcef7c7 100644 (file)
@@ -26,7 +26,7 @@ if {[prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} \
     return -1
 }
 
-if ![fortran_runto_main] {
+if {![fortran_runto_main]} {
     return -1
 }
 
index 6e84b24d92e50a0835d906393d89acf3a4ceb912..d872ad68487a785557adec0be036288ca6b9af7e 100644 (file)
@@ -28,7 +28,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug f90}]} {
     return -1
 }
 
-if ![fortran_runto_main] {
+if {![fortran_runto_main]} {
     return -1
 }
 
index 531af45b5927f141078a243e23f03c1c8bb89b23..17ee5e5c8da9d60191446a3195ad528c1759c679 100644 (file)
@@ -24,7 +24,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug f90}]} {
     return -1
 }
 
-if ![fortran_runto_main] {
+if {![fortran_runto_main]} {
     return -1
 }
 
index 72efb5644577987f8cc452e65fc1afd20ab2600e..323a2abe7a2eecab691f9ea8579851943c14fa82 100644 (file)
@@ -232,7 +232,7 @@ proc test_arithmetic_expressions {} {
     gdb_test "p 6.0 / 3.0"     " = 2"  "real divided by real"
 
     # Test exponentiation with various operands
-    
+
     gdb_test "p 2 ** 3" " = 8" "int powered by int"
     gdb_test "p 2 ** 2 ** 3" " = 256" "combined exponentiation expression"
     gdb_test "p (2 ** 2) ** 3" " = 64" "combined exponentiation expression in specified order"
index 47bac7805ad703c1b51edd914791e4fccd9375a0..f7c50d7a8979288dda0372c65633314a284ace48 100644 (file)
@@ -27,7 +27,7 @@ load_lib fortran.exp
 
 standard_testfile .F90
 
-set max [expr 2 * 1024 * 1024]
+set max [expr {2 * 1024 * 1024}]
 set min 16
 
 set opts {}
@@ -35,7 +35,7 @@ lappend opts debug
 lappend opts f90
 
 set compilation_succeeded 0
-for { set size [expr $max] } { $size >= $min } { set size [expr $size / 2] } {
+for { set size [expr {$max}] } { $size >= $min } { set size [expr {$size / 2}] } {
     set try_opts [concat $opts [list additional_flags=-DCRASH_GDB=$size]]
     with_test_prefix CRASH_GDB=$size {
        if { [build_executable $testfile.exp $testfile $srcfile $try_opts] == -1 } {
@@ -92,6 +92,6 @@ save_vars { timeout } {
        unsupported $test
     } else {
        # At 112 passes with and without the fix, so use 111.
-       gdb_assert {$space_used < [expr 111 * 4 * $size] } $test
+       gdb_assert {$space_used < [expr {111 * 4 * $size}] } $test
     }
 }
index 4178886ecf4fe2344cbe2963af1b34982482cb5b..6cdfd1542e36fc5c36dfb107bb097a3806eb8079 100644 (file)
@@ -29,7 +29,7 @@ save_vars { GDBFLAGS } {
 
 gdb_test "info main" "simple" "info main prior to start"
 
-if ![fortran_runto_main] {
+if {![fortran_runto_main]} {
     untested "could not run to main"
     return -1
 }
index 02f5ff31e7e65a2817cbf990f35a784f6ad60727..93f1da9ecfc6977d8fab8e6a379a379a25f9734c 100644 (file)
@@ -33,7 +33,7 @@ if {[prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} \
     return -1
 }
 
-if ![fortran_runto_main] {
+if {![fortran_runto_main]} {
     return -1
 }
 
index 68b674cd3eca8ad2546c10052739ea2d5fd45e5b..52314edcb36ce485fc3b6b194a5e0b81ddfdf3f7 100644 (file)
@@ -25,7 +25,7 @@ if { [prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} \
     return -1
 }
 
-if ![fortran_runto_main] {
+if {![fortran_runto_main]} {
     return -1
 }
 
index b28bf5c872ea751835ae0719dc4112268d54c761..201f0205c2e54d298f1a36de474f3a1b34b26e85 100644 (file)
@@ -24,7 +24,7 @@ if { [prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} \
     return -1
 }
 
-if ![fortran_runto_main] {
+if {![fortran_runto_main]} {
     return -1
 }
 
index f8e256c5167be7219983a9aaa924cc31068be0f5..143c5be98a6785a797ec6ff25842e99bff16b788 100644 (file)
@@ -25,7 +25,7 @@ if {[prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} \
     return -1
 }
 
-if ![fortran_runto_main] {
+if {![fortran_runto_main]} {
     return -1
 }
 
@@ -160,7 +160,7 @@ while { $test_count < 500 } {
 
        # Finally, check that asking for a dimension above the valid
        # range gives the expected error.
-       set bad_dim [expr $upper_dim + 1]
+       set bad_dim [expr {$upper_dim + 1}]
        gdb_test "p lbound ($array_name, $bad_dim)" \
            "LBOUND dimension must be from 1 to $upper_dim" \
            "check error message for lbound of dim = $bad_dim"
index ec35ef16b4e489893b867870dcf1b0c57d90c53f..07867eed1342bd298cb6df7437ad205e370eae83 100644 (file)
@@ -17,7 +17,7 @@ load_lib fortran.exp
 
 require allow_fortran_tests
 
-standard_testfile library-module-main.f90 
+standard_testfile library-module-main.f90
 set srclibfile ${testfile}-lib.f90
 set libfile [standard_output_file ${testfile}-lib.so]
 
index 38c528614b0ff5c0a0483fe0ff6ba699af8c76f1..9c65d48b024ffc88abeaddf778befc77b872ea67 100644 (file)
@@ -80,7 +80,7 @@ with_test_prefix "with standard max-value size" {
 # Set the max-value-size so we can only print 50 elements.
 set elements 50
 set elem_size [get_valueof "/d" "sizeof(large_1d_array(1))" "*unknown*"]
-gdb_test_no_output "set max-value-size [expr $elem_size * $elements]"
+gdb_test_no_output "set max-value-size [expr {$elem_size * $elements}]"
 
 with_test_prefix "with reduced max-value size" {
     gdb_test "print large_4d_array" \
index b59fb2c10ab6681e4e356a1cd484b5eec7a01b32..e3b9fb5e67bea7033df672c57c0453bb6ccb064a 100644 (file)
@@ -45,7 +45,7 @@ proc run_tests { lang } {
 
        clean_restart ${::testfile}
 
-       if ![runto_main] {
+       if {![runto_main]} {
            return -1
        }
 
index 30988a230729ee8cd4210cb694a5b0dc1f996c08..2496f662977ac19fa3e97d56b4215bff0f0bc5e8 100644 (file)
@@ -25,7 +25,7 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile {debug f90}] }
 
 # Test automatic language detection before the inferior starts.  It tests the
 # effect of expected:
-# (gdb) show language 
+# (gdb) show language
 # The current source language is "auto; currently fortran".
 gdb_test "p modmany::var_i" " = 14" "stopped language detection"
 
@@ -131,6 +131,6 @@ gdb_test "show language" {The current source language is "(auto; currently )?for
 # gcc-4.4.2: The main program is always $fmain in .symtab so "runto" above
 # works.  But DWARF DW_TAG_subprogram contains the name specified by
 # the "program" Fortran statement.
-if [gdb_breakpoint "module"] {
+if {[gdb_breakpoint "module"]} {
     pass "setting breakpoint at module"
 }
index efd225a09f74f60ad58df531004266765340c516..0a719fef64203a68fac92c4c8d3394caee82a00b 100644 (file)
@@ -25,7 +25,7 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug f90}
     return -1
 }
 
-if ![fortran_runto_main] {
+if {![fortran_runto_main]} {
     return
 }
 
index 10846cf76972666c6bc55fb73c60b26e66d3a315..fce631425581a861e0575bc76e3abb47fd35756d 100644 (file)
@@ -38,8 +38,8 @@ gdb_continue_to_breakpoint "Display namelist"
 
 # DW_TAG_namelist is supported starting gcc 4.9.
 set supported [expr \
-                  [test_compiler_info {gfortran-*} f90] \
-                  && [gcc_major_version {gfortran-*} f90] >= 4.9]
+                  {[test_compiler_info {gfortran-*} f90]
+                      && [gcc_major_version {gfortran-*} f90] >= 4.9}]
 if { $supported } {
     gdb_test "ptype nml" \
         "type = Type nml\r\n *$int :: a\r\n *$int :: b\r\n *End Type nml"
index 63917c553fc454af259874b782746f5ff1e38aaf..c92a8c106678be8709d38ee3f52f2f0c5531bf20 100755 (executable)
@@ -14,7 +14,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 # This testcase is supposed to test DWARF static link which is usually
-# used together with nested functions.  
+# used together with nested functions.
 
 require allow_fortran_tests
 
index f2e64e9d05660cbeab0fc0e2f9ac807ef443c0c9..9f443d9fe2dc57609f8f38bafabba78a298ce148 100755 (executable)
@@ -23,7 +23,7 @@ if { [prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} \
         return -1
 }
 
-if ![fortran_runto_main] {
+if {![fortran_runto_main]} {
     perror "could not run to main"
     return -1
 }
index 99206160e9e269095f62b93dc6758ff48d11a110..47ca74a229d1916bb4a6fff38d69aba25f7154c7 100644 (file)
@@ -25,7 +25,7 @@ if {[prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} \
     return -1
 }
 
-if ![fortran_runto_main] {
+if {![fortran_runto_main]} {
     return -1
 }
 
index c08f501f74f439f7bc3f0aec9ed252af961581b7..6d2457f13ee0b3936e6eb425fba7241d88ba8e6e 100755 (executable)
@@ -26,7 +26,7 @@ if { [prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} \
     return -1
 }
 
-if ![fortran_runto_main] {
+if {![fortran_runto_main]} {
     return -1
 }
 
index c61ae9839ef522bf392dd83190a71cb220515b60..e998ead9cb176a2c991b5e80a1e5f5ec8503203f 100644 (file)
@@ -25,7 +25,7 @@ if {[prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} \
     return -1
 }
 
-if ![fortran_runto_main] {
+if {![fortran_runto_main]} {
     return -1
 }
 
index e525bf74c3fd6da54c213f2f1dad15e5afec4d53..7a6bc9beab9f5e5501d4e64b8440aef02e57616c 100644 (file)
@@ -25,7 +25,7 @@ if {[prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} \
     return -1
 }
 
-if ![fortran_runto_main] {
+if {![fortran_runto_main]} {
     return -1
 }
 
index bca971d5f91a10b04652f37d7fda6869e8ba8e3e..ab0411a67ec9b0c18995480fcbe031447702117e 100644 (file)
@@ -48,12 +48,12 @@ reset_called_flags
 # a(x,y) .OR./.AND. a(a,b) correctly.
 foreach_with_prefix truth_table_index {1 2 3 4} {
     gdb_test "p truth_table($truth_table_index, 1) .OR. truth_table($truth_table_index, 2)" \
-            "[expr $truth_table_index > 1 ? \".TRUE.\" : \".FALSE.\"]"
+            "[expr {$truth_table_index > 1 ? ".TRUE." : ".FALSE."}]"
 }
 
 foreach_with_prefix truth_table_index {1 2 3 4} {
     gdb_test "p truth_table($truth_table_index, 1) .AND. truth_table($truth_table_index, 2)" \
-            "[expr $truth_table_index > 3 ? \".TRUE.\" : \".FALSE.\"]"
+            "[expr {$truth_table_index > 3 ? ".TRUE." : ".FALSE."}]"
 }
 
 # Vary number of function arguments to skip.
@@ -78,14 +78,14 @@ with_test_prefix "nested call not skipped" {
     gdb_test "p function_one_arg(.FALSE. .OR. function_no_arg())" \
             " = .TRUE."
     gdb_test "p calls" \
-            " = \\\( function_no_arg_called = [expr $prime + 1], function_no_arg_false_called = $prime, function_one_arg_called = [expr $prime + 1], function_two_arg_called = $prime, function_array_called = $prime \\\)"
+            " = \\\( function_no_arg_called = [expr {$prime + 1}], function_no_arg_false_called = $prime, function_one_arg_called = [expr {$prime + 1}], function_two_arg_called = $prime, function_array_called = $prime \\\)"
 }
 
 with_test_prefix "nested call skipped" {
     gdb_test "p function_one_arg(.TRUE. .OR. function_no_arg())" \
             " = .TRUE."
     gdb_test "p calls" \
-            " = \\\( function_no_arg_called = [expr $prime + 1], function_no_arg_false_called = $prime, function_one_arg_called = [expr $prime + 2], function_two_arg_called = $prime, function_array_called = $prime \\\)"
+            " = \\\( function_no_arg_called = [expr {$prime + 1}], function_no_arg_false_called = $prime, function_one_arg_called = [expr {$prime + 2}], function_two_arg_called = $prime, function_array_called = $prime \\\)"
 }
 
 # Vary number of components in the expression to skip.
index dd6340fab8a278d1e8de00aa1c8a03e8e3460f58..5bc7db2128706fe4fcd85698ab20c9a264f78067 100644 (file)
@@ -25,7 +25,7 @@ if {[prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} \
     return -1
 }
 
-if ![fortran_runto_main] {
+if {![fortran_runto_main]} {
     return -1
 }
 
index aa2210731d5855a285249d62ff8ea55aaab8ea0b..c0a9fd3c0fef43375c02df4f42ad2c87760efb8b 100644 (file)
@@ -25,7 +25,7 @@ if {[prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} \
     return -1
 }
 
-if ![fortran_runto_main] {
+if {![fortran_runto_main]} {
     return -1
 }
 
index c444228a862d101d06e98206676e30d2a597561f..03bc2ce6799c5c15652863f8c5e40329daf84a16 100644 (file)
@@ -25,7 +25,7 @@ proc test_integer_literal_types_accepted {} {
 
     # Test various decimal values.
     # Should be integer*4 probably.
-    gdb_test "pt 123" "type = int" 
+    gdb_test "pt 123" "type = int"
 }
 
 proc test_character_literal_types_accepted {} {
index 8d9fc253a75d7395274eb101fa46a9d34f73f305..b766e1d2c4596eee4f011164c3f8a6311736754b 100644 (file)
@@ -23,7 +23,7 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
     return -1
 }
 
-if ![fortran_runto_main] {
+if {![fortran_runto_main]} {
     return -1
 }
 
index 092a19aef9ac3a2c13a0bed639c5aa595b7f903a..7c2d48de4b3c221d2e9a0d9ee998ad5e9843407f 100644 (file)
@@ -23,7 +23,7 @@ if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
     return -1
 }
 
-if ![fortran_runto_main] {
+if {![fortran_runto_main]} {
     untested "could not run to main"
     return -1
 }
@@ -34,12 +34,12 @@ gdb_continue_to_breakpoint "arr_vla1-print"
 
 # GFortran emits DW_TAG_structure_type for strings and it has only
 # DW_AT_declaration tag.  This results in <incomplete type> in gdb.
-if [test_compiler_info "gfortran*" f90] { setup_xfail *-*-* gcc/101826 }
+if {[test_compiler_info "gfortran*" f90]} { setup_xfail *-*-* gcc/101826 }
 gdb_test "print arr_vla1"  \
     " = \\\('vlaaryvlaary', 'vlaaryvlaary', 'vlaaryvlaary', 'vlaaryvlaary', 'vlaaryvlaary'\\\)"  \
     "print vla string array"
 
-if [test_compiler_info "gfortran*" f90] { setup_xfail *-*-* gcc/101826 }
+if {[test_compiler_info "gfortran*" f90]} { setup_xfail *-*-* gcc/101826 }
 gdb_test "ptype arr_vla1"  \
     "type = character\\*12 \\(5\\)"  \
     "print variable length string array type"
index a4ea89d78c1a289deffefb4afc828dc787e31b8e..6f2bb3ab1ee88a8c59bae6a9540c589a9503658d 100644 (file)
@@ -26,7 +26,7 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
 # check that all fortran standard datatypes will be
 # handled correctly when using as VLA's
 
-if ![fortran_runto_main] {
+if {![fortran_runto_main]} {
     return -1
 }
 
index d51ded4c368a2966ff3714e10cc2ec4bceffb8c7..6dcc31c0a1bea39b5b7c05a51dd3b6375bc9a12c 100644 (file)
@@ -23,7 +23,7 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
     return -1
 }
 
-if ![fortran_runto_main] {
+if {![fortran_runto_main]} {
     return -1
 }
 
index 1a4efc7b113d75ac79e3a519b2dfab980b80cd3c..9f63e600ca69db0febdc526c021c66328d13b3e4 100644 (file)
@@ -23,7 +23,7 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
     return -1
 }
 
-if ![fortran_runto_main] {
+if {![fortran_runto_main]} {
     return -1
 }
 
index 7d957870718f5253ec14b98c7592617150969f55..6809d8cb5dd466f283633f7cf0bbee9692c9dc83 100644 (file)
@@ -23,7 +23,7 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
     return -1
 }
 
-if ![fortran_runto_main] {
+if {![fortran_runto_main]} {
     return -1
 }
 
index ca75afce3971e430da6250958bb5907488928b03..4c72d623f018152e4e59640facfac4b416ea5dcf 100644 (file)
@@ -23,7 +23,7 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
     return -1
 }
 
-if ![fortran_runto_main] {
+if {![fortran_runto_main]} {
     return -1
 }
 
index da9eaa19c529b00b2d48ec939ff009a09b23b821..ede677fafa299777ffec7253f713864f73c2dd76 100644 (file)
@@ -23,7 +23,7 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
     return -1
 }
 
-if ![fortran_runto_main] {
+if {![fortran_runto_main]} {
     return -1
 }
 
index f33231a627cb73369f940fcde33f7b42db0283ec..7cd9cd8bbd3b2d6a83212e15252c478afb44c8d7 100644 (file)
@@ -23,7 +23,7 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
     return -1
 }
 
-if ![fortran_runto_main] {
+if {![fortran_runto_main]} {
     return -1
 }
 
index 01d717e44a285727a02060d8ba4fc6cd9740cf58..ef40dffc5a3cecfcbcc9bf64813bc4be521c67a5 100644 (file)
@@ -23,7 +23,7 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
     return -1
 }
 
-if ![fortran_runto_main] {
+if {![fortran_runto_main]} {
     return -1
 }
 
index e3103bddab0d0b62d8f2b2bef142f69ef60b20e9..566125e6a7c6d02c53e419adc8e4d3d08d624c97 100644 (file)
@@ -23,7 +23,7 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
     return -1
 }
 
-if ![fortran_runto_main] {
+if {![fortran_runto_main]} {
     return -1
 }
 
index fc2864bfc9e11ab1e062f4fb6f6206140dcd3a4c..687b14cd7374f1761a3487f0cabd2f0bef3c9815 100644 (file)
@@ -23,7 +23,7 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
     return -1
 }
 
-if ![fortran_runto_main] {
+if {![fortran_runto_main]} {
     return -1
 }
 
index 8cbddc1d977538824778f2316cf72b63aace6fc4..8891eac3959342eb278f92b43de07f08d66df77f 100644 (file)
@@ -23,7 +23,7 @@ if { [prepare_for_testing "failed to prepare" ${testfile} \
     return -1
 }
 
-if ![fortran_runto_main] {
+if {![fortran_runto_main]} {
     return
 }