aboutsummaryrefslogtreecommitdiff
path: root/test/env.go
AgeCommit message (Collapse)Author
2023-05-12test,internal/testdir: don't set GOOS/GOARCHAustin Clements
The test directory driver currently sets the GOOS/GOARCH environment variables if they aren't set. This appears to be in service of a single test, test/env.go, which was introduced in September 2008 along with os.Getenv. It's not entirely clear what that test is even trying to check, since runtime.GOOS isn't necessarily the same as $GOOS. We keep the test around because golang.org/x/tools/go/ssa/interp uses it as a test case, but we simplify the test and eliminate the need for the driver to set GOOS/GOARCH. Change-Id: I5acc0093b557c95d1f0a526d031210256a68222d Reviewed-on: https://go-review.googlesource.com/c/go/+/493601 Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Austin Clements <austin@google.com> Reviewed-by: Bryan Mills <bcmills@google.com>
2012-02-18os: remove GetenverrorBrad Fitzpatrick
Fixes #3065 R=golang-dev, dsymonds, rsc CC=golang-dev https://golang.org/cl/5675094
2012-02-19test: explanatory comments [c-g]*Rob Pike
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5656103
2012-02-16test: use testlib (first 100)Russ Cox
X ,s;^// \$G (\$D/)?\$F\.go *$;// compile;g X ,s;^// \$G (\$D/)?\$F\.go && \$L \$F\.\$A *$;// build;g X ,s;^// \$G (\$D/)?\$F\.go && \$L \$F\.\$A && \./\$A\.out *$;// run;g X ,s;^// errchk \$G( -e)? (\$D/)?\$F\.go *$;// errorcheck;g R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5656082
2011-11-01non-pkg: gofix -r error -force=errorRuss Cox
R=golang-dev, iant, r, r CC=golang-dev https://golang.org/cl/5307066
2011-03-30test: don't require specific GOARCH values.Ian Lance Taylor
This lets the test work for gccgo on other architectures. R=r, rsc1 CC=golang-dev https://golang.org/cl/4326044
2010-12-15remove naclRuss Cox
The recent linker changes broke NaCl support a month ago, and there are no known users of it. The NaCl code can always be recovered from the repository history. R=adg, r CC=golang-dev https://golang.org/cl/3671042
2010-09-04test: remove semiocolons.Rob Pike
The ken directory is untouched so we have some examples with explicit semis. R=gri CC=golang-dev https://golang.org/cl/2157041
2010-04-22runtime: closures, defer bug fix for Native ClientRuss Cox
Enable package tests for Native Client build. R=r CC=golang-dev https://golang.org/cl/957042
2009-06-26Getenv: almost no one wants the error, so make it return a string that may ↵Rob Pike
be empty. Getenverror is the new name for the old routine that returns an error too. R=rsc DELTA=35 (7 added, 7 deleted, 21 changed) OCL=30818 CL=30821
2009-06-04more 386 runtime fixes.Russ Cox
can pass many tests; current stumbling block is an 8l bug. R=r DELTA=122 (83 added, 8 deleted, 31 changed) OCL=29872 CL=29876
2009-05-08move things out of sys into os and runtimeRuss Cox
R=r OCL=28569 CL=28573
2009-01-16casify, cleanup sysRuss Cox
R=r OCL=22978 CL=22984
2008-09-22add os.Getenv()Rob Pike
R=rsc DELTA=51 (50 added, 0 deleted, 1 changed) OCL=15665 CL=15667