aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/debug_test.go
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2018-07-10 21:07:55 -0700
committerIan Lance Taylor <iant@golang.org>2018-07-13 17:17:54 +0000
commitebdba42d9e1de46ebf611baec98d53f01c534cac (patch)
tree0bc5b203400776beb3ba11b37222849f2cebb8c9 /src/runtime/debug_test.go
parent5201b1ad225e7503e368386ae3ad4f94d7b04d8b (diff)
downloadgo-ebdba42d9e1de46ebf611baec98d53f01c534cac.tar.gz
go-ebdba42d9e1de46ebf611baec98d53f01c534cac.zip
runtime: check tgkill error in Debug tests
Updates #25519 Change-Id: Ibcdf948fd38d8d02d467b62213566ec0d7ce0d6a Reviewed-on: https://go-review.googlesource.com/123180 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Austin Clements <austin@google.com>
Diffstat (limited to 'src/runtime/debug_test.go')
-rw-r--r--src/runtime/debug_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/debug_test.go b/src/runtime/debug_test.go
index 4181d59c1f..a34f4c77f7 100644
--- a/src/runtime/debug_test.go
+++ b/src/runtime/debug_test.go
@@ -69,8 +69,8 @@ func debugCallWorker2(stop *uint32, x *int) {
*x = 1
}
-func debugCallTKill(tid int) {
- syscall.Tgkill(syscall.Getpid(), tid, syscall.SIGTRAP)
+func debugCallTKill(tid int) error {
+ return syscall.Tgkill(syscall.Getpid(), tid, syscall.SIGTRAP)
}
func TestDebugCall(t *testing.T) {