]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb/testsuite, tclint] Fix syntax error in gdb.base/dtrace-probe.exp
authorTom de Vries <tdevries@suse.de>
Thu, 11 Sep 2025 16:31:37 +0000 (18:31 +0200)
committerTom de Vries <tdevries@suse.de>
Thu, 11 Sep 2025 16:31:37 +0000 (18:31 +0200)
When running tclint with gdb.base/dtrace-probe.exp I get:
...
$ tclint gdb.base/dtrace-probe.exp
$exp:67:45: syntax error: expected newline or semicolon, got ]
...
due to these lines:
...
    67      runto "-probe-dtrace test:two-locations"]
    68      runto "-probe-dtrace test:two-locations"]
...

Fix this by dropping the trailing ']'.

Tested by rerunning tclint.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
PR testsuite/33403
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=33403

gdb/testsuite/gdb.base/dtrace-probe.exp

index e165bb44a65d8018d60e43c3a5a64ce5295e8db3..5d4b9df440289429109b997bd54b2b4c05c6863c 100644 (file)
@@ -64,8 +64,8 @@ proc dtrace_test {} {
     # Since test:progress-counter is disabled we can run to the second
     # instance of the test:two-locations probe.
 
-    runto "-probe-dtrace test:two-locations"]
-    runto "-probe-dtrace test:two-locations"]
+    runto "-probe-dtrace test:two-locations"
+    runto "-probe-dtrace test:two-locations"
 
     # Go back to the breakpoint on main() and enable the
     # test:progress-counter probe.  Set a breakpoint on it and see