aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/syscall_windows_test.go
diff options
context:
space:
mode:
authorAlex Brainman <alex.brainman@gmail.com>2014-09-19 11:38:48 +1000
committerAlex Brainman <alex.brainman@gmail.com>2014-09-19 11:38:48 +1000
commit2ed209eaf59c3b7372258419c5fa1f5b0abc507e (patch)
tree871b353c940d3842c7a8d9254351931b272ae529 /src/runtime/syscall_windows_test.go
parentdd8f29e3feb91f3c7ec0681ef23694578e4d9228 (diff)
downloadgo-2ed209eaf59c3b7372258419c5fa1f5b0abc507e.tar.gz
go-2ed209eaf59c3b7372258419c5fa1f5b0abc507e.zip
runtime: allow OutputDebugString to be sent to debugger
We mark DBG_PRINTEXCEPTION_C messages in VEH handler as handled, thus preventing debugger from seeing them. I don't see reason for doing that. The comment warns of crashes, but I added test and don't see any crashes. This is also simplify VEH handler before making changes to fix issue 8006. Update #8006 LGTM=rsc R=golang-codereviews, rsc CC=golang-codereviews https://golang.org/cl/146800043
Diffstat (limited to 'src/runtime/syscall_windows_test.go')
-rw-r--r--src/runtime/syscall_windows_test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/runtime/syscall_windows_test.go b/src/runtime/syscall_windows_test.go
index a828512188..9ed016ccc8 100644
--- a/src/runtime/syscall_windows_test.go
+++ b/src/runtime/syscall_windows_test.go
@@ -488,3 +488,9 @@ func TestRegisterClass(t *testing.T) {
t.Fatalf("UnregisterClass failed: %v", err)
}
}
+
+func TestOutputDebugString(t *testing.T) {
+ d := GetDLL(t, "kernel32.dll")
+ p := syscall.StringToUTF16Ptr("testing OutputDebugString")
+ d.Proc("OutputDebugStringW").Call(uintptr(unsafe.Pointer(p)))
+}