Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for HasGoBuild (0.14 sec)

  1. src/internal/testenv/testenv_test.go

    			// The -noopt builder sets GO_GCFLAGS, which causes tests of 'go build' to
    			// be skipped.
    			t.Logf("HasGoBuild is false on %s", b)
    			return
    		}
    
    		t.Fatalf("HasGoBuild unexpectedly false on %s", b)
    	}
    
    	t.Logf("HasGoBuild is true; checking consistency with other functions")
    
    	hasExec := false
    	hasExecGo := false
    	t.Run("MustHaveExec", func(t *testing.T) {
    		testenv.MustHaveExec(t)
    		hasExec = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 25 23:12:44 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  2. src/cmd/internal/archive/archive_test.go

    	"internal/testenv"
    	"internal/xcoff"
    	"io"
    	"os"
    	"path/filepath"
    	"runtime"
    	"sync"
    	"testing"
    	"unicode/utf8"
    )
    
    var buildDir string
    
    func TestMain(m *testing.M) {
    	if !testenv.HasGoBuild() {
    		return
    	}
    
    	exit := m.Run()
    
    	if buildDir != "" {
    		os.RemoveAll(buildDir)
    	}
    	os.Exit(exit)
    }
    
    func copyDir(dst, src string) error {
    	err := os.MkdirAll(dst, 0777)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 02 19:27:33 UTC 2023
    - 7.9K bytes
    - Viewed (0)
Back to top