Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for makeGOROOTUnwritable (0.24 sec)

  1. src/cmd/dist/test.go

    		}
    		if bytes.Contains(slurp, funcBenchmark) {
    			return true
    		}
    	}
    	return false
    }
    
    // makeGOROOTUnwritable makes all $GOROOT files & directories non-writable to
    // check that no tests accidentally write to $GOROOT.
    func (t *tester) makeGOROOTUnwritable() (undo func()) {
    	dir := os.Getenv("GOROOT")
    	if dir == "" {
    		panic("GOROOT not set")
    	}
    
    	type pathMode struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 16:01:35 UTC 2024
    - 50K bytes
    - Viewed (0)
Back to top