• Rob Pike's avatar
    os: rewrite LookupEnv's test · 072a2633
    Rob Pike authored
    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/9791Reviewed-by: default avatarRuss Cox <rsc@golang.org>
    072a2633
env_test.go 2.33 KB