- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 44 for unsetEnv (0.12 sec)
-
platforms/core-runtime/native/src/main/java/org/gradle/internal/nativeintegration/processenvironment/AbstractProcessEnvironment.java
} @Override public void removeEnvironmentVariable(String name) throws NativeIntegrationException { removeNativeEnvironmentVariable(name); reflectiveEnvironment.unsetenv(name); } protected abstract void removeNativeEnvironmentVariable(String name); @Override public EnvironmentModificationResult maybeRemoveEnvironmentVariable(String name) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 05 19:36:14 UTC 2023 - 3.6K bytes - Viewed (0) -
cluster/images/etcd/migrate/options_test.go
) func setEnvVar(t *testing.T, env, val string, exists bool) { if exists { t.Setenv(env, val) } else if prev, ok := os.LookupEnv(env); ok { t.Cleanup(func() { os.Setenv(env, prev) }) if err := os.Unsetenv(env); err != nil { t.Errorf("couldn't unset env %s: %v", env, err) } } } func TestFallbackToEnv(t *testing.T) { testCases := []struct { desc string env string
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 18 01:55:49 UTC 2023 - 3.1K bytes - Viewed (0) -
internal/kms/config.go
if isPresent(EnvKMSSecretKey) && os.Getenv(EnvKMSSecretKey) == "" { os.Unsetenv(EnvKMSSecretKey) } if isPresent(EnvKMSSecretKeyFile) { if filename := os.Getenv(EnvKMSSecretKeyFile); filename == "" { os.Unsetenv(EnvKMSSecretKeyFile) } else if _, err := os.Stat(filename); errors.Is(err, os.ErrNotExist) { os.Unsetenv(EnvKMSSecretKeyFile) } }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed Jun 12 14:31:26 UTC 2024 - 13.9K bytes - Viewed (0) -
src/cmd/internal/pkgpath/pkgpath_test.go
}, { env: "v3", mangled: "p_u00e4_u4e16_U0001f703", }, { env: "error", fail: true, }, } cmd := os.Args[0] tmpdir := t.TempDir() defer os.Unsetenv(testEnvName) for _, test := range tests { t.Run(test.env, func(t *testing.T) { os.Setenv(testEnvName, test.env) fn, err := ToSymbolFunc(cmd, tmpdir) if err != nil { if !test.fail {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 27 18:26:59 UTC 2022 - 2.9K bytes - Viewed (0) -
ci/official/containers/linux_arm64/builder.devtoolset/gcc9-fixups.patch
index 45efe2e..06bfab0 100644 --- a/stdlib/setenv.c +++ b/stdlib/setenv.c @@ -319,6 +319,7 @@ unsetenv (const char *name) ep = __environ; if (ep != NULL) + { while (*ep != NULL) if (!strncmp (*ep, name, len) && (*ep)[len] == '=') { @@ -332,6 +333,7 @@ unsetenv (const char *name) } else ++ep; + } UNLOCK;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Sep 18 14:52:45 UTC 2023 - 8.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/dump_mlir_util_test.cc
namespace { using ::testing::IsNull; TEST(DumpMlirModuleTest, NoEnvPrefix) { mlir::MLIRContext context; mlir::OwningOpRef<mlir::ModuleOp> module_ref = mlir::ModuleOp::create(mlir::UnknownLoc::get(&context)); unsetenv("TF_DUMP_GRAPH_PREFIX"); std::string filepath = DumpMlirOpToFile("module", module_ref.get()); EXPECT_EQ(filepath, "(TF_DUMP_GRAPH_PREFIX not specified)"); } TEST(DumpMlirModuleTest, LogInfo) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Mar 18 13:40:21 UTC 2024 - 5.8K bytes - Viewed (0) -
src/cmd/go/internal/work/security_test.go
} os.Setenv("CGO_TEST_ALLOW", "-disallow") if err := checkCompilerFlags("TEST", "test", []string{"-disallow"}); err != nil { t.Fatalf("unexpected error for -disallow with CGO_TEST_ALLOW=-disallow: %v", err) } os.Unsetenv("CGO_TEST_ALLOW") if err := checkCompilerFlags("TEST", "test", []string{"-Wall"}); err != nil { t.Fatalf("unexpected error for -Wall: %v", err) } os.Setenv("CGO_TEST_DISALLOW", "-Wall")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 15:47:34 UTC 2024 - 7.3K bytes - Viewed (0) -
tensorflow/c/eager/c_api_cluster_test.cc
TFE_DeleteContext(ctx); TF_DeleteStatus(status); // TODO(b/136478427): Figure out how to correctly shut the server down. worker_server.release(); tensorflow::unsetenv("GRPC_FAIL_FAST"); } TEST(CAPI, RemoteExecuteUpdateServerDefWithFailures) { TestRemoteExecuteUpdateServerDefWithFailures(false); } TEST(CAPI, RemoteExecuteUpdateServerDefWithFailuresAsync) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Apr 14 10:03:59 UTC 2023 - 19.3K bytes - Viewed (0) -
src/os/example_test.go
fmt.Printf("%s lives in %s.\n", os.Getenv("NAME"), os.Getenv("BURROW")) // Output: // gopher lives in /usr/gopher. } func ExampleUnsetenv() { os.Setenv("TMPDIR", "/my/tmp") defer os.Unsetenv("TMPDIR") } func ExampleReadDir() { files, err := os.ReadDir(".") if err != nil { log.Fatal(err) } for _, file := range files { fmt.Println(file.Name()) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 10 17:35:49 UTC 2024 - 8.4K bytes - Viewed (0) -
src/cmd/go/internal/cache/cache_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 25 00:49:37 UTC 2023 - 7.4K bytes - Viewed (0)