diff options
| author | Austin Clements <austin@google.com> | 2022-10-17 11:29:34 -0400 |
|---|---|---|
| committer | Austin Clements <austin@google.com> | 2022-11-01 17:06:49 +0000 |
| commit | 767df51b4dc4d952fd3f3ff14dffdf5fd8cffb4e (patch) | |
| tree | 33568a8aead9b75933d755053a446816f29425a7 /src/runtime/testdata | |
| parent | e72da1c15dc273b39dcb5dd87c56d5713dbc1b37 (diff) | |
| download | go-767df51b4dc4d952fd3f3ff14dffdf5fd8cffb4e.tar.xz | |
runtime: fix missing error print in TestCgoSigfwd
The result of the call to fmt.Errorf was unused. It was clearly
intending to print the message, not simply construct an error.
Change-Id: I14856214c521a51fe4b45690e6c35fbb17e66577
Reviewed-on: https://go-review.googlesource.com/c/go/+/443375
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
Diffstat (limited to 'src/runtime/testdata')
| -rw-r--r-- | src/runtime/testdata/testprogcgo/sigfwd.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/testdata/testprogcgo/sigfwd.go b/src/runtime/testdata/testprogcgo/sigfwd.go index b66616db36..f6a0c031d7 100644 --- a/src/runtime/testdata/testprogcgo/sigfwd.go +++ b/src/runtime/testdata/testprogcgo/sigfwd.go @@ -61,7 +61,7 @@ var nilPtr *byte func f() (ret bool) { defer func() { if recover() == nil { - fmt.Errorf("ERROR: couldn't raise SIGSEGV in Go.") + fmt.Fprintf(os.Stderr, "ERROR: couldn't raise SIGSEGV in Go\n") C.exit(2) } ret = true |
