summaryrefslogtreecommitdiff
path: root/test/env.go
Commit message (Collapse)AuthorAgeFilesLines
* test,internal/testdir: don't set GOOS/GOARCHAustin Clements2023-05-121-5/+8
| | | | | | | | | | | | | | | | | | 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>
* os: remove GetenverrorBrad Fitzpatrick2012-02-181-8/+4
| | | | | | | | Fixes #3065 R=golang-dev, dsymonds, rsc CC=golang-dev https://golang.org/cl/5675094
* test: explanatory comments [c-g]*Rob Pike2012-02-191-0/+3
| | | | | | R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5656103
* test: use testlib (first 100)Russ Cox2012-02-161-1/+1
| | | | | | | | | | | 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
* non-pkg: gofix -r error -force=errorRuss Cox2011-11-011-2/+2
| | | | | | R=golang-dev, iant, r, r CC=golang-dev https://golang.org/cl/5307066
* test: don't require specific GOARCH values.Ian Lance Taylor2011-03-301-3/+6
| | | | | | | | This lets the test work for gccgo on other architectures. R=r, rsc1 CC=golang-dev https://golang.org/cl/4326044
* remove naclRuss Cox2010-12-151-1/+0
| | | | | | | | | | | | 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
* test: remove semiocolons.Rob Pike2010-09-041-8/+8
| | | | | | | | The ken directory is untouched so we have some examples with explicit semis. R=gri CC=golang-dev https://golang.org/cl/2157041
* runtime: closures, defer bug fix for Native ClientRuss Cox2010-04-221-0/+1
| | | | | | | | Enable package tests for Native Client build. R=r CC=golang-dev https://golang.org/cl/957042
* Getenv: almost no one wants the error, so make it return a string that may ↵Rob Pike2009-06-261-2/+2
| | | | | | | | | | | 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
* more 386 runtime fixes.Russ Cox2009-06-041-1/+1
| | | | | | | | | | 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
* move things out of sys into os and runtimeRuss Cox2009-05-081-3/+3
| | | | | | R=r OCL=28569 CL=28573
* casify, cleanup sysRuss Cox2009-01-161-3/+3
| | | | | | R=r OCL=22978 CL=22984
* add os.Getenv()Rob Pike2008-09-221-0/+26
R=rsc DELTA=51 (50 added, 0 deleted, 1 changed) OCL=15665 CL=15667