Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for _exit (0.17 sec)

  1. src/cmd/cgo/internal/test/callback.go

    	defer func() {
    		s := recover()
    		if s == nil {
    			t.Fatal("did not panic")
    		}
    		if s.(string) != "callback panic" {
    			t.Fatal("wrong panic:", s)
    		}
    		if lockedOSThread() {
    			t.Fatal("locked OS thread on exit from TestCallbackPanic")
    		}
    	}()
    	nestedCall(func() { panic("callback panic") })
    	panic("nestedCall returned")
    }
    
    func testCallbackPanicLoop(t *testing.T) {
    	// Make sure we don't blow out m->g0 stack.
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 111.5K bytes
    - Viewed (0)
Back to top