aboutsummaryrefslogtreecommitdiff
path: root/compiler_wrapper/bisect_flag_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'compiler_wrapper/bisect_flag_test.go')
-rw-r--r--compiler_wrapper/bisect_flag_test.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/compiler_wrapper/bisect_flag_test.go b/compiler_wrapper/bisect_flag_test.go
index 43c3095b..8500eef2 100644
--- a/compiler_wrapper/bisect_flag_test.go
+++ b/compiler_wrapper/bisect_flag_test.go
@@ -8,7 +8,6 @@ import (
"errors"
"fmt"
"io"
- "os"
"path/filepath"
"strings"
"testing"
@@ -83,12 +82,12 @@ func TestDefaultBisectDirAndroid(t *testing.T) {
withBisectTestContext(t, func(ctx *testContext) {
ctx.env = []string{
"BISECT_STAGE=someBisectStage",
+ "HOME=/somehome",
}
ctx.cfg.isAndroidWrapper = true
cmd := mustCallBisectDriver(ctx, callCompiler(ctx, ctx.cfg, ctx.newCommand(gccX86_64, mainCc)))
- userHome, _ := os.UserHomeDir()
if err := verifyArgOrder(cmd,
- "someBisectStage", filepath.Join(userHome, "ANDROID_BISECT")); err != nil {
+ "someBisectStage", filepath.Join("/somehome", "ANDROID_BISECT")); err != nil {
t.Error(err)
}
})