1
0
mirror of https://github.com/golang/go synced 2024-11-13 20:00:23 -07:00
go/src
Rob Pike 072a26331a os: rewrite LookupEnv's test
GOROOT is not dependably set.

When I first wrote this test, I thought it was a waste of time
because the function can't fail if the other environment functions
work, but I didn't want to add functionality without testing it.
Of course, the test broke, and I learned something: GOROOT is not
set on iOS or, to put it more broadly, the world continues to
surprise me with its complexity and horror, such as a version of
cat with syntax coloring.

In that vein, I built this test around smallpox.

Change-Id: Ifa6c218a927399d05c47954fdcaea1015e558fb6
Reviewed-on: https://go-review.googlesource.com/9791
Reviewed-by: Russ Cox <rsc@golang.org>
2015-05-06 16:02:32 +00:00
..
archive archive/tar: fix error message 2015-05-04 21:27:45 +00:00
bufio
builtin
bytes bytes, strings: add LastIndexByte 2015-04-30 07:13:18 +00:00
cmd cmd/ld: make .rela and .rela.plt sections contiguous 2015-05-06 11:37:13 +00:00
compress compress/flate: simplify the TestDegenerateHuffmanCoding data. 2015-04-17 04:31:48 +00:00
container
crypto crypto/x509: be strict about trailing data. 2015-04-30 03:49:36 +00:00
database/sql
debug debug/dwarf: update class_string.go to add ClassReferenceSig using stringer. 2015-04-27 02:05:20 +00:00
encoding encoding/asn1: Improved control of flags and times 2015-04-28 16:35:13 +00:00
errors
expvar
flag
fmt fmt: prevent panic from %.[] 2015-05-05 21:07:38 +00:00
go go/build: enable cgo by default on solaris/amd64 2015-05-06 11:38:37 +00:00
hash hash/crc32: move reverse representation docs to an example 2015-05-04 00:19:22 +00:00
html html/template: fix quadratic performance with special tags 2015-04-30 16:22:29 +00:00
image image/gif: allow encoding a single-frame image whose top-left corner 2015-05-06 01:00:58 +00:00
index/suffixarray
internal mime, time, internal/syscall/windows/registry: use new registry package to simplify code 2015-04-30 04:33:42 +00:00
io io: add CopyBuffer, a version of Copy in which the user provides a buffer 2015-04-15 15:59:16 +00:00
log log/syslog: make the BUG notes visible on golang.org 2015-04-22 21:09:53 +00:00
math math/big: add modular square-root and Jacobi functions 2015-04-30 04:02:58 +00:00
mime mime, time, internal/syscall/windows/registry: use new registry package to simplify code 2015-04-30 04:33:42 +00:00
net net: fix inconsistent error values on Read for solaris 2015-05-06 12:43:45 +00:00
os os: rewrite LookupEnv's test 2015-05-06 16:02:32 +00:00
path
reflect runtime: rename ptrsize to ptrdata 2015-05-05 19:27:47 +00:00
regexp regexp: trivial change in comments to update code.google.com link 2015-04-27 20:18:25 +00:00
runtime runtime: remove unused GC timers 2015-05-06 12:53:08 +00:00
sort
strconv
strings strings: use LastIndexByte in LastIndex 2015-04-30 08:33:29 +00:00
sync
syscall syscall, net: use sendfile on Solaris 2015-05-06 12:26:35 +00:00
testing testing/quick: align tests with reflect.Kind. 2015-04-26 02:40:40 +00:00
text text/template: check for malformed pipelines 2015-05-05 23:03:54 +00:00
time time: Fix ordering of slots in AfterQueueing test 2015-05-04 16:49:37 +00:00
unicode
unsafe
all.bash
all.bat
all.rc
androidtest.bash
bootstrap.bash
buildall.bash src: build cmd in buildall.bash 2015-04-30 00:02:59 +00:00
clean.bash
clean.bat
clean.rc
iostest.bash iostest.bash: run detect.go as part of iostest 2015-04-16 12:59:54 +00:00
make.bash
make.bat
Make.dist
make.rc
nacltest.bash nacltest.bash: remove syscall/fstest_nacl.go after test 2015-05-02 02:48:32 +00:00
race.bash
race.bat
run.bash
run.bat
run.rc