aboutsummaryrefslogtreecommitdiff
path: root/compiler_wrapper/sysroot_flag_test.go
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-05-11 05:13:49 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-05-11 05:13:49 +0000
commit3388e0bc5fd93e8854d51e6754f776df1e093633 (patch)
treeb0522edde1d3c5356c95eb1ee2eae3e87befa1f3 /compiler_wrapper/sysroot_flag_test.go
parent4e4201457e5f51a132101c611c79ccff9f713c8b (diff)
parent882a18888febb9cb0b9d6c6069498cbc4aa30f88 (diff)
downloadtoolchain-utils-3388e0bc5fd93e8854d51e6754f776df1e093633.tar.gz
Change-Id: I0bb41e1e296b9adeb6f195898e715af87327c081
Diffstat (limited to 'compiler_wrapper/sysroot_flag_test.go')
-rw-r--r--compiler_wrapper/sysroot_flag_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler_wrapper/sysroot_flag_test.go b/compiler_wrapper/sysroot_flag_test.go
index 308d5e96..b05a627e 100644
--- a/compiler_wrapper/sysroot_flag_test.go
+++ b/compiler_wrapper/sysroot_flag_test.go
@@ -57,7 +57,7 @@ func TestClearEmptySysrootFlagInEnv(t *testing.T) {
func TestSetSysrootRelativeToWrapperPath(t *testing.T) {
withTestContext(t, func(ctx *testContext) {
- ctx.cfg.rootRelPath = "somepath"
+ ctx.cfg.gccRootRelPath = "somepath"
cmd := ctx.must(callCompiler(ctx, ctx.cfg,
ctx.newCommand(gccX86_64, mainCc)))
if err := verifyArgOrder(cmd,
@@ -69,7 +69,7 @@ func TestSetSysrootRelativeToWrapperPath(t *testing.T) {
func TestSetSysrootRelativeToSymlinkedWrapperPath(t *testing.T) {
withTestContext(t, func(ctx *testContext) {
- ctx.cfg.rootRelPath = "somepath"
+ ctx.cfg.gccRootRelPath = "somepath"
linkedWrapperPath := path.Join(ctx.tempDir, "a/linked/path/x86_64-cros-linux-gnu-gcc")
ctx.symlink(path.Join(ctx.tempDir, gccX86_64), linkedWrapperPath)