summaryrefslogtreecommitdiff
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
commit5d49c83aeefacecd3b258a819125dadcfff9720a (patch)
treec44b477d347f107d263645c37dda9152c251c8a6 /src/runtime/syscall_windows_test.go
parent469d7709be1212ab0e149f07fe8b69cf9e731908 (diff)
downloadgo-5d49c83aeefacecd3b258a819125dadcfff9720a.tar.gz
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 issue 8006 LGTM=rsc R=golang-codereviews, rsc CC=golang-codereviews https://codereview.appspot.com/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 a82851218..9ed016ccc 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)))
+}