aboutsummaryrefslogtreecommitdiff
path: root/compiler_wrapper/env_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'compiler_wrapper/env_test.go')
-rw-r--r--compiler_wrapper/env_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler_wrapper/env_test.go b/compiler_wrapper/env_test.go
index 6b00a8b5..c10942de 100644
--- a/compiler_wrapper/env_test.go
+++ b/compiler_wrapper/env_test.go
@@ -226,6 +226,9 @@ func TestNewProcessEnvResolvesPwdAwayProperly(t *testing.T) {
os.Unsetenv(envPwd)
initialWd, err := os.Getwd()
+ if err != nil {
+ t.Fatalf("Failed getting working directory: %v", err)
+ }
if initialWd == "/proc/self/cwd" {
t.Fatalf("Working directory should never be %q when env is unset", initialWd)
}