aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.python/py-watchpoint.exp
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2024-12-12 07:54:51 -0700
committerTom Tromey <tromey@adacore.com>2025-01-06 07:01:05 -0700
commit03736207c6c81713c9ed749877de1c0e0ff3ffee (patch)
tree52bf6ae160ef6932262cd79659264550b52640f3 /gdb/testsuite/gdb.python/py-watchpoint.exp
parent99e2df0090faba0705aabd2792fe427de20b8e46 (diff)
downloadbinutils-03736207c6c81713c9ed749877de1c0e0ff3ffee.zip
binutils-03736207c6c81713c9ed749877de1c0e0ff3ffee.tar.gz
binutils-03736207c6c81713c9ed749877de1c0e0ff3ffee.tar.bz2
Remove "then" from test suite
This removes the "then" keyword from the test suite. Andrew did this once before, but some new ones crept in. This also adds braces to the "if" conditions and normalizes the failures to just use "return".
Diffstat (limited to 'gdb/testsuite/gdb.python/py-watchpoint.exp')
-rw-r--r--gdb/testsuite/gdb.python/py-watchpoint.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.python/py-watchpoint.exp b/gdb/testsuite/gdb.python/py-watchpoint.exp
index a3c0d7d..9361956 100644
--- a/gdb/testsuite/gdb.python/py-watchpoint.exp
+++ b/gdb/testsuite/gdb.python/py-watchpoint.exp
@@ -25,7 +25,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile]} {
require allow_python_tests
-if ![runto_main] then {
+if {![runto_main]} {
return
}