Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 262 for getBad (0.19 sec)

  1. src/syscall/syscall_aix.go

    //sys	Ftruncate(fd int, length int64) (err error)
    //sysnb	Getgid() (gid int)
    //sysnb	Getpid() (pid int)
    //sys	Geteuid() (euid int)
    //sys	Getegid() (egid int)
    //sys	Getppid() (ppid int)
    //sys	Getpriority(which int, who int) (n int, err error)
    //sysnb	Getrlimit(which int, lim *Rlimit) (err error)
    //sysnb	Getrusage(who int, rusage *Rusage) (err error)
    //sysnb	Getuid() (uid int)
    //sys	Kill(pid int, signum Signal) (err error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 13:50:55 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  2. src/runtime/testdata/testprog/syscalls_linux.go

    }
    
    func getcwd() (string, error) {
    	if !syscall.ImplementsGetwd {
    		return "", nil
    	}
    	// Use the syscall to get the current working directory.
    	// This is imperative for checking for OS thread state
    	// after an unshare since os.Getwd might just check the
    	// environment, or use some other mechanism.
    	var buf [4096]byte
    	n, err := syscall.Getcwd(buf[:])
    	if err != nil {
    		return "", err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:00:09 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/ProviderConventionMappingIntegrationTest.groovy

            buildFile << """
                abstract class MyTask extends DefaultTask {
                    @Internal abstract Property<String> getFoo()
                    @Internal abstract Property<String> getBar()
    
                    @TaskAction
                    void useIt() {
                        assert foo.get() == "foobar"
                    }
                }
                tasks.register("mytask", MyTask) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 12:27:37 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/testers/MapHashCodeTester.java

        for (Entry<K, V> entry : getSampleEntries()) {
          expectedHashCode += hash(entry);
        }
        assertEquals(
            "A Map's hashCode() should be the sum of those of its entries.",
            expectedHashCode,
            getMap().hashCode());
      }
    
      @CollectionSize.Require(absent = CollectionSize.ZERO)
      @MapFeature.Require(ALLOWS_NULL_KEYS)
      public void testHashCode_containingNullKey() {
        Entry<K, V> entryWithNull = entry(null, v3());
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 09 20:10:38 UTC 2018
    - 2.9K bytes
    - Viewed (0)
  5. src/net/net_windows_test.go

    		}
    	}
    }
    
    // check that getmac exists as a powershell command, and that it
    // speaks English.
    func checkGetmac(t *testing.T) {
    	out, err := runCmd("getmac", "/?")
    	if err != nil {
    		if strings.Contains(err.Error(), "term 'getmac' is not recognized as the name of a cmdlet") {
    			t.Skipf("getmac not available")
    		}
    		t.Fatal(err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/cmd/phases/workflow/runner_test.go

    			rt.runner.BindToCommand(rt.cmd)
    
    			// Checks that cmd gets a new phase subcommand
    			phaseCmd := getCmd(rt.cmd, "phase")
    			if phaseCmd == nil {
    				t.Error("cmd didn't have phase subcommand\n")
    				return
    			}
    
    			for c, args := range rt.testCases {
    
    				cCmd := getCmd(rt.cmd, c)
    				if cCmd == nil {
    					t.Errorf("cmd didn't have %s subcommand\n", c)
    					continue
    				}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 20 20:03:45 UTC 2023
    - 15.2K bytes
    - Viewed (0)
  7. src/runtime/testdata/testprog/syscalls_none.go

    // license that can be found in the LICENSE file.
    
    //go:build !linux
    // +build !linux
    
    package main
    
    func gettid() int {
    	return 0
    }
    
    func tidExists(tid int) (exists, supported bool, err error) {
    	return false, false, nil
    }
    
    func getcwd() (string, error) {
    	return "", nil
    }
    
    func unshareFs() error {
    	return nil
    }
    
    func chdir(path string) error {
    	return nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:00:09 UTC 2024
    - 471 bytes
    - Viewed (0)
  8. src/runtime/security_aix.go

    package runtime
    
    // secureMode is only ever mutated in schedinit, so we don't need to worry about
    // synchronization primitives.
    var secureMode bool
    
    func initSecureMode() {
    	secureMode = !(getuid() == geteuid() && getgid() == getegid())
    }
    
    func isSecureMode() bool {
    	return secureMode
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 06 18:49:01 UTC 2023
    - 449 bytes
    - Viewed (0)
  9. src/syscall/syscall_solaris.go

    		return
    	}
    	return anyToSockaddr(&rsa)
    }
    
    const ImplementsGetwd = true
    
    //sys	Getcwd(buf []byte) (n int, err error)
    
    func Getwd() (wd string, err error) {
    	var buf [PathMax]byte
    	// Getcwd will return an error if it failed for any reason.
    	_, err = Getcwd(buf[0:])
    	if err != nil {
    		return "", err
    	}
    	n := clen(buf[:])
    	if n < 1 {
    		return "", EINVAL
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_sql_databases/test_testing_databases_py39.py

    
    @needs_py39
    # TODO: pv2 add version with Pydantic v2
    @needs_pydanticv1
    def test_testing_dbs_py39(tmp_path_factory: pytest.TempPathFactory):
        tmp_path = tmp_path_factory.mktemp("data")
        cwd = os.getcwd()
        os.chdir(tmp_path)
        test_db = Path("./test.db")
        if test_db.is_file():  # pragma: nocover
            test_db.unlink()
        # Import while creating the client to create the DB after starting the test session
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 822 bytes
    - Viewed (0)
Back to top