diff options
author | Andrew Burgess <aburgess@redhat.com> | 2022-11-14 14:24:37 +0000 |
---|---|---|
committer | Andrew Burgess <aburgess@redhat.com> | 2022-11-28 21:04:09 +0000 |
commit | 49bb47443c05e573d1675adba6d8f07562db2d3f (patch) | |
tree | 2ddf0c75c426062009c021c96712a987068916d1 /gdb/testsuite/gdb.fortran/nested-funcs.exp | |
parent | 6ca2ea063a71d6e2742096f980c2607e9d413cf5 (diff) | |
download | binutils-49bb47443c05e573d1675adba6d8f07562db2d3f.zip binutils-49bb47443c05e573d1675adba6d8f07562db2d3f.tar.gz binutils-49bb47443c05e573d1675adba6d8f07562db2d3f.tar.bz2 |
gdb/testsuite: remove use of then keyword from gdb.fortran/*.exp
The canonical form of 'if' in modern TCL is 'if {} {}'. But there's
still a bunch of places in the testsuite where we make use of the
'then' keyword, and sometimes these get copies into new tests, which
just spreads poor practice.
This commit removes all use of the 'then' keyword from the gdb.fortran/
test script directory.
There should be no changes in what is tested after this commit.
Diffstat (limited to 'gdb/testsuite/gdb.fortran/nested-funcs.exp')
-rwxr-xr-x | gdb/testsuite/gdb.fortran/nested-funcs.exp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.fortran/nested-funcs.exp b/gdb/testsuite/gdb.fortran/nested-funcs.exp index ea3d666..237e09e 100755 --- a/gdb/testsuite/gdb.fortran/nested-funcs.exp +++ b/gdb/testsuite/gdb.fortran/nested-funcs.exp @@ -25,7 +25,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug f90}]} { return -1 } -if ![fortran_runto_main] then { +if {![fortran_runto_main]} { perror "couldn't run to main" continue } |