Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestGoExec (0.15 sec)

  1. src/cmd/nm/nm_cgo_test.go

    import (
    	"internal/testenv"
    	"testing"
    )
    
    func TestInternalLinkerCgoExec(t *testing.T) {
    	testenv.MustHaveCGO(t)
    	testenv.MustInternalLink(t, true)
    	testGoExec(t, true, false)
    }
    
    func TestExternalLinkerCgoExec(t *testing.T) {
    	testenv.MustHaveCGO(t)
    	testGoExec(t, true, true)
    }
    
    func TestCgoLib(t *testing.T) {
    	testenv.MustHaveCGO(t)
    	testGoLib(t, true)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 02 16:34:21 UTC 2023
    - 533 bytes
    - Viewed (0)
  2. src/cmd/nm/nm_test.go

    		out, err := cmd.CombinedOutput()
    		if err != nil {
    			t.Errorf("go tool nm %v: %v\n%s", exepath, err, string(out))
    		}
    	}
    }
    
    func testGoExec(t *testing.T, iscgo, isexternallinker bool) {
    	t.Parallel()
    	tmpdir, err := os.MkdirTemp("", "TestGoExec")
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer os.RemoveAll(tmpdir)
    
    	src := filepath.Join(tmpdir, "a.go")
    	file, err := os.Create(src)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 20 23:32:34 UTC 2023
    - 8.8K bytes
    - Viewed (0)
Back to top