Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for getenv (0.23 sec)

  1. src/cmd/cgo/internal/test/issue18146.go

    			max := int(rlim.Cur) / (threads + 5)
    			if attempts > max {
    				t.Logf("lowering attempts from %d to %d for RLIMIT_NPROC", attempts, max)
    				attempts = max
    			}
    		}
    	}
    
    	if os.Getenv("test18146") == "exec" {
    		runtime.GOMAXPROCS(1)
    		for n := threads; n > 0; n-- {
    			go func() {
    				for {
    					_ = md5.Sum([]byte("Hello, !"))
    				}
    			}()
    		}
    		runtime.GOMAXPROCS(threads)
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Sep 05 23:35:32 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  2. src/archive/zip/reader_test.go

    			continue
    		}
    		if got := fi.ModTime(); !got.Equal(test.want) {
    			t.Errorf("%s: got modtime %v, want %v", test.name, got, test.want)
    		}
    	}
    }
    
    func TestCVE202127919(t *testing.T) {
    	t.Setenv("GODEBUG", "zipinsecurepath=0")
    	// Archive containing only the file "../test.txt"
    	data := []byte{
    		0x50, 0x4b, 0x03, 0x04, 0x14, 0x00, 0x08, 0x00,
    		0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  3. src/cmd/addr2line/addr2line_test.go

    package main
    
    import (
    	"bufio"
    	"bytes"
    	"internal/testenv"
    	"os"
    	"path/filepath"
    	"runtime"
    	"strings"
    	"sync"
    	"testing"
    )
    
    // TestMain executes the test binary as the addr2line command if
    // GO_ADDR2LINETEST_IS_ADDR2LINE is set, and runs the tests otherwise.
    func TestMain(m *testing.M) {
    	if os.Getenv("GO_ADDR2LINETEST_IS_ADDR2LINE") != "" {
    		main()
    		os.Exit(0)
    	}
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 22:16:54 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/test/issue1435.go

    // should be mirrored here.
    func test1435(t *testing.T) {
    	if syscall.Getuid() != 0 {
    		t.Skip("skipping root only test")
    	}
    	if testing.Short() && testenv.Builder() != "" && os.Getenv("USER") == "swarming" {
    		// The Go build system's swarming user is known not to be root.
    		// Unfortunately, it sometimes appears as root due the current
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Jul 28 21:31:41 GMT 2023
    - 7.5K bytes
    - Viewed (0)
  5. misc/ios/go_ios_exec.go

    	devID = getenv("GOIOS_DEV_ID")
    
    	// e.g. Z8B3JBXXXX.org.golang.sample, Z8B3JBXXXX prefix is available at
    	// https://developer.apple.com/membercenter/index.action#accountSummary as Team ID.
    	appID = getenv("GOIOS_APP_ID")
    
    	// e.g. Z8B3JBXXXX, available at
    	// https://developer.apple.com/membercenter/index.action#accountSummary as Team ID.
    	teamID = getenv("GOIOS_TEAM_ID")
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Apr 11 16:34:30 GMT 2022
    - 23.4K bytes
    - Viewed (0)
  6. src/archive/zip/zip_test.go

    		_, err := io.ReadFull(rc, chunk[:frag])
    		if err != nil {
    			t.Fatal("read:", err)
    		}
    	}
    	gotEnd, err := io.ReadAll(rc)
    	if err != nil {
    		t.Fatal("read end:", err)
    	}
    	if !bytes.Equal(gotEnd, end) {
    		t.Errorf("End of zip64 archive %q, want %q", gotEnd, end)
    	}
    	err = rc.Close()
    	if err != nil {
    		t.Fatal("closing:", err)
    	}
    	if size+int64(len("END\n")) >= 1<<32-1 {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 19.5K bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/test/callback_windows.go

    	}
    	return i;
    #else
    	return 0;
    #endif
    }
    */
    import "C"
    
    import (
    	"internal/testenv"
    	"reflect"
    	"runtime"
    	"strings"
    	"testing"
    	"unsafe"
    )
    
    // Test that the stack can be unwound through a call out and call back
    // into Go.
    func testCallbackCallersSEH(t *testing.T) {
    	testenv.SkipIfOptimizationOff(t) // This test requires inlining.
    	if runtime.Compiler != "gc" {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Nov 29 16:01:37 GMT 2023
    - 2.6K bytes
    - Viewed (0)
  8. src/cmd/cgo/gcc.go

    // an error if it does not.
    func checkGCCBaseCmd() ([]string, error) {
    	// Use $CC if set, since that's what the build uses.
    	value := os.Getenv("CC")
    	if value == "" {
    		// Try $GCC if set, since that's what we used to use.
    		value = os.Getenv("GCC")
    	}
    	if value == "" {
    		value = defaultCC(goos, goarch)
    	}
    	args, err := quoted.Split(value)
    	if err != nil {
    		return nil, err
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
  9. misc/go_android_exec/main.go

    		fmt.Fprintf(os.Stderr, "adb %s\n%s", strings.Join(args, " "), out)
    		return err
    	}
    	return nil
    }
    
    func adbCmd(args ...string) *exec.Cmd {
    	if flags := os.Getenv("GOANDROID_ADB_FLAGS"); flags != "" {
    		args = append(strings.Split(flags, " "), args...)
    	}
    	return exec.Command("adb", args...)
    }
    
    const (
    	deviceRoot   = "/data/local/tmp/go_android_exec"
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Aug 21 17:46:57 GMT 2023
    - 15.3K bytes
    - Viewed (0)
  10. api/go1.17.txt

    pkg syscall (windows-amd64), type SysProcAttr struct, ParentProcess Handle
    pkg testing, method (*B) Setenv(string, string)
    pkg testing, method (*T) Setenv(string, string)
    pkg testing, type TB interface, Setenv(string, string)
    pkg text/template/parse, const SkipFuncCheck = 2
    pkg text/template/parse, const SkipFuncCheck Mode
    pkg time, const Layout = "01/02 03:04:05PM '06 -0700"
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Feb 17 20:31:46 GMT 2023
    - 18K bytes
    - Viewed (0)
Back to top