Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestPanicAfterGoexit (0.15 sec)

  1. src/runtime/crash_test.go

    		}
    	}
    }
    
    func panicValue(fn func()) (recovered any) {
    	defer func() {
    		recovered = recover()
    	}()
    	fn()
    	return
    }
    
    func TestPanicAfterGoexit(t *testing.T) {
    	// an uncaught panic should still work after goexit
    	output := runTestProg(t, "testprog", "PanicAfterGoexit")
    	want := "panic: hello"
    	if !strings.HasPrefix(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