Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ZeroDivisionException (0.24 sec)

  1. src/runtime/testdata/testprog/syscall_windows.go

    package main
    
    import (
    	"internal/syscall/windows"
    	"runtime"
    	"sync"
    	"syscall"
    	"unsafe"
    )
    
    func init() {
    	register("RaiseException", RaiseException)
    	register("ZeroDivisionException", ZeroDivisionException)
    	register("StackMemory", StackMemory)
    }
    
    func RaiseException() {
    	const EXCEPTION_NONCONTINUABLE = 1
    	mod := syscall.MustLoadDLL("kernel32.dll")
    	proc := mod.MustFindProc("RaiseException")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 23 17:31:31 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  2. src/runtime/syscall_windows_test.go

    	}
    	if !strings.Contains(o, "Exception 0xbad") {
    		t.Fatalf("No stack trace: %v", o)
    	}
    }
    
    func TestZeroDivisionException(t *testing.T) {
    	o := runTestProg(t, "testprog", "ZeroDivisionException")
    	if !strings.Contains(o, "panic: runtime error: integer divide by zero") {
    		t.Fatalf("No stack trace: %v", o)
    	}
    }
    
    func TestWERDialogue(t *testing.T) {
    	if os.Getenv("TEST_WER_DIALOGUE") == "1" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 31 16:31:35 UTC 2023
    - 32.5K bytes
    - Viewed (0)
Back to top