-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
Showing
4 changed files
with
28 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
//go:build ignore | ||
|
||
#include <windows.h> | ||
|
||
__declspec(dllexport) | ||
void RaiseNoExcept(void) | ||
{ | ||
RaiseException(42, 0, 0, 0); | ||
} | ||
|
||
static DWORD WINAPI ThreadRaiser(void* Context) | ||
{ | ||
RaiseNoExcept(); | ||
return 0; | ||
} | ||
|
||
__declspec(dllexport) | ||
void ThreadRaiseNoExcept(void) | ||
{ | ||
HANDLE thread = CreateThread(0, 0, ThreadRaiser, 0, 0, 0); | ||
if (0 != thread) | ||
{ | ||
WaitForSingleObject(thread, INFINITE); | ||
CloseHandle(thread); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.