- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for GO_EXEC_TEST_PID (0.14 sec)
-
src/os/exec/exec_linux_test.go
// file descriptors. Work around the problem by creating threads up front. // See issue 25628. package exec_test import ( "os" "sync" "syscall" "time" ) func init() { if os.Getenv("GO_EXEC_TEST_PID") == "" { return } // Start some threads. 10 is arbitrary but intended to be enough // to ensure that the code won't have to create any threads itself.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 26 14:49:07 UTC 2022 - 1.2K bytes - Viewed (0) -
src/os/exec/read3.go
//go:build ignore // This is a test program that verifies that it can read from // descriptor 3 and that no other descriptors are open. // This is not done via TestHelperProcess and GO_EXEC_TEST_PID // because we want to ensure that this program does not use cgo, // because C libraries can open file descriptors behind our backs // and confuse the test. See issue 25628. package main import ( "fmt"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 26 14:49:07 UTC 2022 - 2.2K bytes - Viewed (0) -
src/os/exec/exec_test.go
// package monkey-patches those variables before running tests). func TestMain(m *testing.M) { flag.Parse() pid := os.Getpid() if os.Getenv("GO_EXEC_TEST_PID") == "" { os.Setenv("GO_EXEC_TEST_PID", strconv.Itoa(pid)) if runtime.GOOS == "windows" { // Normalize environment so that test behavior is consistent. // (The behavior of LookPath varies depending on this variable.) //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 20:13:53 UTC 2024 - 48.4K bytes - Viewed (0)