Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TracebackContext (0.51 sec)

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

    */
    import "C"
    
    import (
    	"fmt"
    	"runtime"
    	"sync"
    	"unsafe"
    )
    
    func init() {
    	register("TracebackContext", TracebackContext)
    	register("TracebackContextPreemption", TracebackContextPreemption)
    }
    
    var tracebackOK bool
    
    func TracebackContext() {
    	runtime.SetCgoTraceback(0, unsafe.Pointer(C.tcTraceback), unsafe.Pointer(C.tcContext), unsafe.Pointer(C.tcSymbolizer))
    	C.C1()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 29 15:30:38 UTC 2021
    - 2.8K bytes
    - Viewed (0)
  2. src/runtime/crash_cgo_test.go

    		if !strings.Contains(got, want) {
    			t.Errorf("missing %s", want)
    		}
    	}
    }
    
    func TestCgoTracebackContext(t *testing.T) {
    	t.Parallel()
    	got := runTestProg(t, "testprogcgo", "TracebackContext")
    	want := "OK\n"
    	if got != want {
    		t.Errorf("expected %q got %v", want, got)
    	}
    }
    
    func TestCgoTracebackContextPreemption(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