Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for MustHaveBuildMode (0.25 sec)

  1. src/cmd/cgo/internal/testcarchive/carchive_test.go

    		}
    	}
    }
    
    func TestInstall(t *testing.T) {
    	globalSkip(t)
    	testenv.MustHaveGoBuild(t)
    	testenv.MustHaveCGO(t)
    	testenv.MustHaveBuildMode(t, "c-archive")
    
    	if !testWork {
    		defer os.RemoveAll(filepath.Join(GOPATH, "pkg"))
    	}
    
    	libgoa := "libgo.a"
    	if runtime.Compiler == "gccgo" {
    		libgoa = "liblibgo.a"
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 00:43:51 UTC 2023
    - 34.8K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/testsanitizers/cshared_test.go

    import (
    	"fmt"
    	"internal/platform"
    	"internal/testenv"
    	"os"
    	"strings"
    	"testing"
    )
    
    func TestShared(t *testing.T) {
    	testenv.MustHaveGoBuild(t)
    	testenv.MustHaveCGO(t)
    	testenv.MustHaveBuildMode(t, "c-shared")
    
    	t.Parallel()
    	requireOvercommit(t)
    
    	GOOS, err := goEnv("GOOS")
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	GOARCH, err := goEnv("GOARCH")
    	if err != nil {
    		t.Fatal(err)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 19 01:37:31 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/testcshared/cshared_test.go

    	}
    
    	return nil
    }
    
    var (
    	headersOnce sync.Once
    	headersErr  error
    )
    
    func createHeadersOnce(t *testing.T) {
    	testenv.MustHaveGoBuild(t)
    	testenv.MustHaveCGO(t)
    	testenv.MustHaveBuildMode(t, "c-shared")
    
    	headersOnce.Do(func() {
    		headersErr = createHeaders()
    	})
    	if headersErr != nil {
    		t.Helper()
    		t.Fatal(headersErr)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 13:19:50 UTC 2023
    - 21K bytes
    - Viewed (0)
  4. src/internal/testenv/testenv.go

    		t.Skipf("skipping test: internal linking for buildmode=pie on %s/%s is not supported", runtime.GOOS, runtime.GOARCH)
    	}
    }
    
    // MustHaveBuildMode reports whether the current system can build programs in
    // the given build mode.
    // If not, MustHaveBuildMode calls t.Skip with an explanation.
    func MustHaveBuildMode(t testing.TB, buildmode string) {
    	if !platform.BuildModeSupported(runtime.Compiler, buildmode, runtime.GOOS, runtime.GOARCH) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 16:41:38 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  5. src/cmd/link/internal/ld/elf_test.go

    			if test.mustInternalLink {
    				testenv.MustInternalLink(t, test.mustHaveCGO)
    			}
    			if test.mustHaveCGO {
    				testenv.MustHaveCGO(t)
    			}
    			if test.mustHaveBuildModePIE {
    				testenv.MustHaveBuildMode(t, "pie")
    			}
    			if test.mustHaveBuildModePIE && test.mustInternalLink {
    				testenv.MustInternalLinkPIE(t)
    			}
    
    			var (
    				dir     = t.TempDir()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 13:44:07 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/testshared/shared_test.go

    	}
    	globalSkip(t)
    	testenv.MustHaveBuildMode(t, "pie")
    	name := "trivial_pie"
    	goCmd(t, "build", "-buildmode=pie", "-o="+name, "./trivial")
    	defer os.Remove(name)
    	run(t, name, "./"+name)
    	checkPIE(t, name)
    }
    
    func TestCgoPIE(t *testing.T) {
    	globalSkip(t)
    	testenv.MustHaveCGO(t)
    	testenv.MustHaveBuildMode(t, "pie")
    	name := "cgo_pie"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 26 01:54:41 UTC 2023
    - 36.3K bytes
    - Viewed (0)
Back to top