Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for GO_TEST_CGOSIGFWD (0.18 sec)

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

    			C.exit(2)
    		}
    		ret = true
    	}()
    	*nilPtr = 1
    	return false
    }
    
    func CgoSigfwd() {
    	if os.Getenv("GO_TEST_CGOSIGFWD") == "" {
    		fmt.Fprintf(os.Stderr, "test must be run with GO_TEST_CGOSIGFWD set\n")
    		os.Exit(1)
    	}
    
    	// Test that the signal originating in Go is handled (and recovered) by Go.
    	if !f() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 01 17:06:49 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  2. src/runtime/crash_cgo_test.go

    	}
    }
    
    func TestCgoSigfwd(t *testing.T) {
    	t.Parallel()
    	if !goos.IsUnix {
    		t.Skipf("no signals on %s", runtime.GOOS)
    	}
    
    	got := runTestProg(t, "testprogcgo", "CgoSigfwd", "GO_TEST_CGOSIGFWD=1")
    	if want := "OK\n"; got != want {
    		t.Fatalf("expected %q, but got:\n%s", want, got)
    	}
    }
    
    func TestDestructorCallback(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