Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for DoublePanic (0.14 sec)

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

    // license that can be found in the LICENSE file.
    
    package main
    
    import (
    	"fmt"
    	"runtime"
    )
    
    func init() {
    	register("Crash", Crash)
    	register("DoublePanic", DoublePanic)
    	register("ErrorPanic", ErrorPanic)
    	register("StringerPanic", StringerPanic)
    	register("DoubleErrorPanic", DoubleErrorPanic)
    	register("DoubleStringerPanic", DoubleStringerPanic)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:10:41 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  2. src/runtime/crash_test.go

    	}
    }
    
    // Test that panic message is not clobbered.
    // See issue 30150.
    func TestDoublePanic(t *testing.T) {
    	output := runTestProg(t, "testprog", "DoublePanic", "GODEBUG=clobberfree=1")
    	wants := []string{"panic: XXX", "panic: YYY"}
    	for _, want := range wants {
    		if !strings.Contains(output, want) {
    			t.Errorf("output:\n%s\n\nwant output containing: %s", 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