Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for CgoExternalThreadPanic (0.37 sec)

  1. src/runtime/testdata/testprogcgo/threadpanic.go

    // license that can be found in the LICENSE file.
    
    //go:build !plan9
    // +build !plan9
    
    package main
    
    // void start(void);
    import "C"
    
    func init() {
    	register("CgoExternalThreadPanic", CgoExternalThreadPanic)
    }
    
    func CgoExternalThreadPanic() {
    	C.start()
    	select {}
    }
    
    //export gopanic
    func gopanic() {
    	panic("BOOM")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 428 bytes
    - Viewed (0)
  2. src/runtime/crash_cgo_test.go

    	}
    }
    
    func TestCgoExternalThreadPanic(t *testing.T) {
    	t.Parallel()
    	if runtime.GOOS == "plan9" {
    		t.Skipf("no pthreads on %s", runtime.GOOS)
    	}
    	got := runTestProg(t, "testprogcgo", "CgoExternalThreadPanic")
    	want := "panic: BOOM"
    	if !strings.Contains(got, want) {
    		t.Fatalf("want failure containing %q. output:\n%s\n", want, got)
    	}
    }
    
    func TestCgoExternalThreadSIGPROF(t *testing.T) {
    	t.Parallel()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 16:44:47 UTC 2024
    - 22.2K bytes
    - Viewed (0)
Back to top