]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/testsuite/gdb.arch/i386-gnu-cfi.exp
gdb/testsuite: remove use of then keyword from gdb.arch/*.exp
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.arch / i386-gnu-cfi.exp
index 68aae8f92360a8e0c764556e4a23dc44d1dc0567..04f80acf44a225c10fb7b8fd464d45428fdb3f03 100644 (file)
@@ -23,7 +23,7 @@
 # Test i386 unwinder.
 
 
-if { ![is_x86_like_target] } then {
+if {![is_x86_like_target]} {
     verbose "Skipping i386 unwinder tests."
     return
 }
@@ -86,7 +86,7 @@ gdb_test "frame $gate_n" \
 gdb_test_multiple "info frame" "existence of the CFI inserted register" {
     -re "Stack level $gate_n, frame at (0x\[0-9a-f\]+):.*Saved registers:.* ecx at (0x\[0-9a-f\]+),.*" {
        pass "existence of the CFI inserted register"
-       if { [string compare $expect_out(1,string) $expect_out(2,string)] } then {
+       if {[string compare $expect_out(1,string) $expect_out(2,string)]} {
            fail "value of the CFI inserted register"
        } else {
            pass "value of the CFI inserted register"