Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestCallbackPanicLoop (0.17 sec)

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

    func TestCallbackPanic(t *testing.T)         { testCallbackPanic(t) }
    func TestCallbackPanicLocked(t *testing.T)   { testCallbackPanicLocked(t) }
    func TestCallbackPanicLoop(t *testing.T)     { testCallbackPanicLoop(t) }
    func TestCallbackStack(t *testing.T)         { testCallbackStack(t) }
    func TestCflags(t *testing.T)                { testCflags(t) }
    func TestCheckConst(t *testing.T)            { testCheckConst(t) }
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed May 17 21:53:11 GMT 2023
    - 6.4K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/test/callback.go

    		}
    		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.
    	for i := 0; i < 100000; i++ {
    		testCallbackPanic(t)
    	}
    }
    
    func testCallbackPanicLocked(t *testing.T) {
    	runtime.LockOSThread()
    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