Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for SyscallInPanic (0.1 sec)

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

    	register("RecoverBeforePanicAfterGoexit2", RecoverBeforePanicAfterGoexit2)
    	register("PanicTraceback", PanicTraceback)
    	register("GoschedInPanic", GoschedInPanic)
    	register("SyscallInPanic", SyscallInPanic)
    	register("PanicLoop", PanicLoop)
    }
    
    func SimpleDeadlock() {
    	select {}
    	panic("not reached")
    }
    
    func InitDeadlock() {
    	select {}
    	panic("not reached")
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 27 20:44:24 UTC 2021
    - 6.5K bytes
    - Viewed (0)
  2. src/runtime/crash_test.go

    	}
    }
    
    func TestPanicDeadlockGosched(t *testing.T) {
    	testPanicDeadlock(t, "GoschedInPanic", "panic: errorThatGosched\n\n")
    }
    
    func TestPanicDeadlockSyscall(t *testing.T) {
    	testPanicDeadlock(t, "SyscallInPanic", "1\n2\npanic: 3\n\n")
    }
    
    func TestPanicLoop(t *testing.T) {
    	output := runTestProg(t, "testprog", "PanicLoop")
    	if want := "panic while printing panic value"; !strings.Contains(output, want) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 19:46:10 UTC 2024
    - 27K bytes
    - Viewed (0)
Back to top