Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 183 for SkipIf (0.77 sec)

  1. src/go/internal/gcimporter/gcimporter_test.go

    				}
    			}
    		}
    	}
    }
    
    func TestImportTypeparamTests(t *testing.T) {
    	if testing.Short() {
    		t.Skipf("in short mode, skipping test that requires export data for all of std")
    	}
    
    	// This package only handles gc export data.
    	if runtime.Compiler != "gc" {
    		t.Skipf("gc-built packages not available (compiler = %s)", runtime.Compiler)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:22:59 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  2. src/cmd/go/internal/envcmd/env_test.go

    		t.Parallel()
    
    		for _, c := range []byte(s) {
    			if c == 0 {
    				t.Skipf("skipping %q: contains a null byte. Null bytes can't occur in the environment"+
    					" outside of Plan 9, which has different code path than Windows and Unix that this test"+
    					" isn't testing.", s)
    			}
    			if c > unicode.MaxASCII {
    				t.Skipf("skipping %#q: contains a non-ASCII character %q", s, c)
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  3. src/runtime/vdso_test.go

    	strace := "/bin/strace"
    	if _, err := os.Stat(strace); err != nil {
    		strace = "/usr/bin/strace"
    		if _, err := os.Stat(strace); err != nil {
    			t.Skipf("skipping test because strace not found: %v", err)
    		}
    	}
    
    	exe, err := os.Executable()
    	if err != nil {
    		t.Skipf("skipping because Executable failed: %v", err)
    	}
    
    	t.Logf("GO_WANT_HELPER_PROCESS=1 %s -f -e clock_gettime %s -test.run=^TestUsingVDSO$", strace, exe)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 17 19:47:47 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  4. src/net/interface_unix_test.go

    	_, _ = Listen("tcp", "[fe80::1%nonexistent]:0")
    
    	ti := &testInterface{local: "fe80::1"}
    	if err := ti.setLinkLocal(0); err != nil {
    		t.Skipf("test requires external command: %v", err)
    	}
    	if err := ti.setup(); err != nil {
    		if e := err.Error(); strings.Contains(e, "Permission denied") {
    			t.Skipf("permission denied, skipping test: %v", e)
    		}
    		t.Fatal(err)
    	}
    	defer ti.teardown()
    
    	time.Sleep(3 * time.Millisecond)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 18 23:51:35 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  5. src/syscall/exec_linux_test.go

    				t.Logf("as non-root, expected permission error due to unprivileged gid_map")
    				if !os.IsPermission(err) {
    					if err == nil {
    						t.Skipf("unexpected success: probably old kernel without security fix?")
    					}
    					if testenv.SyscallIsNotSupported(err) {
    						t.Skipf("skipping: CLONE_NEWUSER appears to be unsupported")
    					}
    					t.Fatalf("got non-permission error") // Already logged above.
    				}
    				return
    			}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 07:45:37 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  6. pkg/util/procfs/procfs_linux_test.go

    	if runtime.GOOS == "darwin" || runtime.GOOS == "windows" {
    		t.Skipf("not supported on GOOS=%s", runtime.GOOS)
    	}
    	pids, err := PidOf(filepath.Base(os.Args[0]))
    	assert.Empty(t, err)
    	assert.NotZero(t, pids)
    	assert.Contains(t, pids, os.Getpid())
    }
    
    func TestPKill(t *testing.T) {
    	if runtime.GOOS == "darwin" || runtime.GOOS == "windows" {
    		t.Skipf("not supported on GOOS=%s", runtime.GOOS)
    	}
    	sig := syscall.SIGCONT
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 20 07:13:28 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/testsanitizers/asan_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    	// The asan tests require support for the -asan option.
    	if !platform.ASanSupported(goos, goarch) {
    		t.Skipf("skipping on %s/%s; -asan option is not supported.", goos, goarch)
    	}
    	if !compilerRequiredAsanVersion(goos, goarch) {
    		t.Skipf("skipping on %s/%s: too old version of compiler", goos, goarch)
    	}
    
    	t.Parallel()
    	requireOvercommit(t)
    	config := configure("address")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 19 01:37:31 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  8. src/os/path_test.go

    		t.Errorf("MkdirAll %q: %s", path, err)
    	}
    }
    
    func TestMkdirAllAtSlash(t *testing.T) {
    	switch runtime.GOOS {
    	case "android", "ios", "plan9", "windows":
    		t.Skipf("skipping on %s", runtime.GOOS)
    	}
    	if testenv.Builder() == "" {
    		t.Skipf("skipping non-hermetic test outside of Go builders")
    	}
    
    	RemoveAll("/_go_os_test")
    	const dir = "/_go_os_test/dir"
    	err := MkdirAll(dir, 0777)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 19 20:45:37 UTC 2023
    - 3K bytes
    - Viewed (0)
  9. src/internal/cpu/cpu_test.go

    package cpu_test
    
    import (
    	. "internal/cpu"
    	"internal/godebug"
    	"internal/testenv"
    	"os"
    	"os/exec"
    	"testing"
    )
    
    func MustHaveDebugOptionsSupport(t *testing.T) {
    	if !DebugOptions {
    		t.Skipf("skipping test: cpu feature options not supported by OS")
    	}
    }
    
    func MustSupportFeatureDetection(t *testing.T) {
    	// TODO: add platforms that do not have CPU feature detection support.
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:29 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  10. src/net/net_test.go

    	"time"
    )
    
    func TestCloseRead(t *testing.T) {
    	switch runtime.GOOS {
    	case "plan9":
    		t.Skipf("not supported on %s", runtime.GOOS)
    	}
    	t.Parallel()
    
    	for _, network := range []string{"tcp", "unix", "unixpacket"} {
    		network := network
    		t.Run(network, func(t *testing.T) {
    			if !testableNetwork(network) {
    				t.Skipf("network %s is not testable on the current platform", network)
    			}
    			t.Parallel()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 21:04:44 UTC 2024
    - 13.3K bytes
    - Viewed (0)
Back to top