Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 328 for getInf (0.2 sec)

  1. testing/internal-testing/src/test/groovy/org/gradle/infra/EnvironmentVariablesPropagationTest.groovy

    import spock.lang.Specification
    
    class EnvironmentVariablesPropagationTest extends Specification {
        def "no sensitive env variables #value propagated to test JVMs"() {
            expect:
            System.getenv().each { k, v ->
                assert !k.toLowerCase().contains(value.toLowerCase())
                assert !v.toLowerCase().contains(value.toLowerCase())
            }
    
            where:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  2. src/os/file.go

    	switch runtime.GOOS {
    	case "windows":
    		dir = Getenv("LocalAppData")
    		if dir == "" {
    			return "", errors.New("%LocalAppData% is not defined")
    		}
    
    	case "darwin", "ios":
    		dir = Getenv("HOME")
    		if dir == "" {
    			return "", errors.New("$HOME is not defined")
    		}
    		dir += "/Library/Caches"
    
    	case "plan9":
    		dir = Getenv("home")
    		if dir == "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 23:07:37 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  3. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/remote/internal/inet/InetAddressFactory.java

            }
        }
    
        @Nullable
        private InetAddress findOpenshiftAddresses() {
            for (String key : System.getenv().keySet()) {
                if (key.startsWith("OPENSHIFT_") && key.endsWith("_IP")) {
                    String ipAddress = System.getenv(key);
                    logger.debug("OPENSHIFT IP environment variable {} detected. Using IP address {}.", key, ipAddress);
                    try {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 00:47:05 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_collective.cc

        return success();
      }
      return op->emitOpError() << "module already contains an attribute "
                               << attr_name << "=" << ex_attr_value.getInt()
                               << ", overwritting to a new value "
                               << attr_value.getInt() << " is not allowed.";
    }
    
    LogicalResult SetCollectiveInfo(IntegerAttr group_size, IntegerAttr group_key,
                                    Operation* op) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 16K bytes
    - Viewed (0)
  5. internal/disk/stat_linux.go

    	"fmt"
    	"io"
    	"os"
    	"path/filepath"
    	"strconv"
    	"strings"
    	"syscall"
    
    	"github.com/prometheus/procfs/blockdevice"
    	"golang.org/x/sys/unix"
    )
    
    // GetInfo returns total and free bytes available in a directory, e.g. `/`.
    func GetInfo(path string, firstTime bool) (info Info, err error) {
    	s := syscall.Statfs_t{}
    	err = syscall.Statfs(path, &s)
    	if err != nil {
    		return Info{}, err
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Feb 26 19:34:50 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  6. subprojects/core/src/main/java/org/gradle/internal/classpath/Instrumented.java

        }
    
        // Called by generated code.
        public static String getenv(String key, String consumer) {
            String value = System.getenv(key);
            envVariableQueried(key, value, consumer);
            return value;
        }
    
        // Called by generated code.
        public static Map<String, String> getenv(String consumer) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 13:46:35 UTC 2024
    - 34.2K bytes
    - Viewed (0)
  7. src/net/mockserver_test.go

    		}
    	}, nil
    }
    
    func init() {
    	if os.Getenv("GO_NET_TEST_TRANSFER") == "" {
    		return
    	}
    	defer os.Exit(0)
    
    	f := os.NewFile(uintptr(3), "splice-test-conn")
    	defer f.Close()
    
    	conn, err := FileConn(f)
    	if err != nil {
    		log.Fatal(err)
    	}
    
    	var chunkSize int
    	if chunkSize, err = strconv.Atoi(os.Getenv("GO_NET_TEST_TRANSFER_CHUNK_SIZE")); err != nil {
    		log.Fatal(err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 06:04:31 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  8. test/fixedbugs/issue21317.go

    import "fmt"
    
    func main() {
            n, err := fmt.Println(1)
    }
    `)
    	f.Close()
    	defer os.RemoveAll(f.Name())
    
    	// compile and test output
    	cmd := exec.Command("go", "tool", "compile", "-p=main", "-importcfg="+os.Getenv("STDLIB_IMPORTCFG"), f.Name())
    	out, err := cmd.CombinedOutput()
    	if err == nil {
    		log.Fatalf("expected cmd/compile to fail")
    	}
    	wantErrs := []string{
    		"7:9: declared and not used: n",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/test_cache_inputs.txt

    	if err != nil {
    		t.Fatal(err)
    	}
    	if !ps.Success() {
    		t.Fatalf("script failed: %v", err)
    	}
    }
    
    func TestExternalFile(t *testing.T) {
    	os.Open(os.Getenv("TEST_EXTERNAL_FILE"))
    	_, err := os.Stat(os.Getenv("TEST_EXTERNAL_FILE"))
    	if err != nil {
    		t.Fatal(err)
    	}
    }
    
    func TestOSArgs(t *testing.T) {
    	t.Log(os.Args)
    }
    
    func TestBenchtime(t *testing.T) {
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 09 22:23:53 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  10. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/undeclared/EnvVariableInjection.groovy

            // We can't "unset" the variable with the API executer provides, but it isn't necessary, thanks to the filtering in
            // build-logic/jvm/src/main/kotlin/gradlebuild/propagated-env-variables.kt
            if (System.getenv().containsKey(key)) {
                throw new IllegalStateException("Environment variable $key is present for this process and may affect tests")
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 1.8K bytes
    - Viewed (0)
Back to top