Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 183 for SkipIf (0.09 sec)

  1. src/net/rawconn_test.go

    package net
    
    import (
    	"bytes"
    	"runtime"
    	"testing"
    	"time"
    )
    
    func TestRawConnReadWrite(t *testing.T) {
    	switch runtime.GOOS {
    	case "plan9", "js", "wasip1":
    		t.Skipf("not supported on %s", runtime.GOOS)
    	}
    
    	t.Run("TCP", func(t *testing.T) {
    		handler := func(ls *localServer, ln Listener) {
    			c, err := ln.Accept()
    			if err != nil {
    				t.Error(err)
    				return
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/swig/swig_test.go

    	cxx, err := exec.Command("go", "env", "CXX").CombinedOutput()
    	if err != nil {
    		t.Fatalf("go env CXX failed: %s", err)
    	}
    	args, err := quoted.Split(string(cxx))
    	if err != nil {
    		t.Skipf("could not parse 'go env CXX' output %q: %s", string(cxx), err)
    	}
    	if len(args) == 0 {
    		t.Skip("no C++ compiler")
    	}
    	testenv.MustHaveExecPath(t, string(args[0]))
    }
    
    var (
    	swigOnce sync.Once
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 12:38:14 UTC 2024
    - 4K bytes
    - Viewed (0)
  3. src/net/error_test.go

    	{"unix", "/path/to/somewhere"},
    	{"unixgram", "/path/to/somewhere"},
    	{"unixpacket", "/path/to/somewhere"},
    }
    
    func TestDialError(t *testing.T) {
    	switch runtime.GOOS {
    	case "plan9":
    		t.Skipf("%s does not have full support of socktest", runtime.GOOS)
    	}
    
    	origTestHookLookupIP := testHookLookupIP
    	defer func() { testHookLookupIP = origTestHookLookupIP }()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 20.3K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/test/callstub_linux_ppc64le.go

    import "C"
    import "testing"
    
    func testPPC64CallStubs(t *testing.T) {
    	// Verify the trampolines run on the testing machine. If they
    	// do not, or are missing, a crash is expected.
    	if C.TestPPC64Stubs() != 0 {
    		t.Skipf("This test requires binutils 2.35 or newer.")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 22 15:06:17 UTC 2023
    - 540 bytes
    - Viewed (0)
  5. src/cmd/go/note_test.go

    	}
    	if id != buildID {
    		t.Fatalf("buildID in hello binary = %q, want %q", id, buildID)
    	}
    
    	switch {
    	case !testenv.HasCGO():
    		t.Skipf("skipping - no cgo, so assuming external linking not available")
    	case runtime.GOOS == "plan9":
    		t.Skipf("skipping - external linking not supported")
    	}
    
    	tg.run("build", "-ldflags", "-buildid="+buildID+" -linkmode=external", "-o", tg.path("hello2.exe"), tg.path("hello.go"))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 20 17:26:46 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  6. src/internal/coverage/cfile/emitdata_test.go

    	"testing"
    )
    
    // Set to true for debugging (linux only).
    const fixedTestDir = false
    
    func TestCoverageApis(t *testing.T) {
    	if testing.Short() {
    		t.Skipf("skipping test: too long for short mode")
    	}
    	if !goexperiment.CoverageRedesign {
    		t.Skipf("skipping new coverage tests (experiment not enabled)")
    	}
    	testenv.MustHaveGoBuild(t)
    	dir := t.TempDir()
    	if fixedTestDir {
    		dir = "/tmp/qqqzzz"
    		os.RemoveAll(dir)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  7. src/syscall/syscall_windows_test.go

    	// layers.
    	a200 := strings.Repeat("a", 200)
    	dirname := filepath.Join(t.TempDir(), a200, a200)
    
    	err := os.MkdirAll(dirname, 0o700)
    	if err != nil {
    		t.Skipf("MkdirAll failed: %v", err)
    	}
    	err = os.Chdir(dirname)
    	if err != nil {
    		t.Skipf("Chdir failed: %v", err)
    	}
    	// Change out of the temporary directory so that we don't inhibit its
    	// removal during test cleanup.
    	defer os.Chdir(`\`)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 17 16:33:09 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  8. src/internal/reflectlite/reflect_mirror_test.go

    	// TODO when the dust clears, figure out what this should actually test.
    	t.Skipf("reflect and reflectlite are out of sync for now")
    	reflectDir := filepath.Join(runtime.GOROOT(), "src", "reflect")
    	if _, err := os.Stat(reflectDir); os.IsNotExist(err) {
    		// On some mobile builders, the test binary executes on a machine without a
    		// complete GOROOT source tree.
    		t.Skipf("GOROOT source not present")
    	}
    
    	var wg sync.WaitGroup
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 21:11:15 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  9. src/runtime/importx_test.go

    	Failed() bool
    	Fatal(args ...any)
    	Fatalf(format string, args ...any)
    	Helper()
    	Log(args ...any)
    	Logf(format string, args ...any)
    	Name() string
    	Setenv(key, value string)
    	Skip(args ...any)
    	SkipNow()
    	Skipf(format string, args ...any)
    	Skipped() bool
    	TempDir() string
    }
    
    var FmtSprintf func(format string, a ...any) string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 10 17:18:27 UTC 2023
    - 763 bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/test/issue18146.go

    	if testing.Short() {
    		t.Skip("skipping in short mode")
    	}
    
    	if runtime.GOOS == "darwin" || runtime.GOOS == "ios" {
    		t.Skipf("skipping flaky test on %s; see golang.org/issue/18202", runtime.GOOS)
    	}
    
    	if runtime.GOARCH == "mips" || runtime.GOARCH == "mips64" {
    		t.Skipf("skipping on %s", runtime.GOARCH)
    	}
    
    	attempts := 1000
    	threads := 4
    
    	// Restrict the number of attempts based on RLIMIT_NPROC.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:32 UTC 2023
    - 2.8K bytes
    - Viewed (0)
Back to top