aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/testdata/testwinlibthrow/main.go
diff options
context:
space:
mode:
authorqmuntal <quimmuntal@gmail.com>2022-10-20 19:06:05 +0200
committerDavid Chase <drchase@google.com>2022-10-20 18:45:28 +0000
commit160bb0e66b96e24120deba5fed927acc47b59b1a (patch)
tree6b8c72858b786919f3a6c718bc48d259a68f0da8 /src/runtime/testdata/testwinlibthrow/main.go
parent72c58fb77192f7d17d87663c943360a48aae11dc (diff)
downloadgo-160bb0e66b96e24120deba5fed927acc47b59b1a.tar.xz
runtime: fix TestVectoredHandlerExceptionInNonGoThread
This test is failing on the windows-arm64-10 builder https://build.golang.org/log/c161c86be1af83c349ee02c1b12eff5828818f50. It is not failing on windows-arm64-11, so I guess it has something to do with the compiler. This CL simplifies the test so is easier to build. Change-Id: I6e0e1cf237277628f8ebf892c70ab54cd0077680 Reviewed-on: https://go-review.googlesource.com/c/go/+/444438 TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Michael Pratt <mpratt@google.com> Run-TryBot: Quim Muntal <quimmuntal@gmail.com> Reviewed-by: Bryan Mills <bcmills@google.com>
Diffstat (limited to 'src/runtime/testdata/testwinlibthrow/main.go')
-rw-r--r--src/runtime/testdata/testwinlibthrow/main.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/runtime/testdata/testwinlibthrow/main.go b/src/runtime/testdata/testwinlibthrow/main.go
index 50c483f401..ce0c92f252 100644
--- a/src/runtime/testdata/testwinlibthrow/main.go
+++ b/src/runtime/testdata/testwinlibthrow/main.go
@@ -7,17 +7,13 @@ import (
func main() {
dll := syscall.MustLoadDLL("veh.dll")
- RaiseExcept := dll.MustFindProc("RaiseExcept")
RaiseNoExcept := dll.MustFindProc("RaiseNoExcept")
- ThreadRaiseExcept := dll.MustFindProc("ThreadRaiseExcept")
ThreadRaiseNoExcept := dll.MustFindProc("ThreadRaiseNoExcept")
thread := len(os.Args) > 1 && os.Args[1] == "thread"
if !thread {
- RaiseExcept.Call()
RaiseNoExcept.Call()
} else {
- ThreadRaiseExcept.Call()
ThreadRaiseNoExcept.Call()
}
}