summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/cond-expr.exp
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.base/cond-expr.exp')
-rw-r--r--gdb/testsuite/gdb.base/cond-expr.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.base/cond-expr.exp b/gdb/testsuite/gdb.base/cond-expr.exp
index f0c4c328594..36754f92158 100644
--- a/gdb/testsuite/gdb.base/cond-expr.exp
+++ b/gdb/testsuite/gdb.base/cond-expr.exp
@@ -42,7 +42,7 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
clean_restart ${binfile}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}