Remove buildDir from cc package

Bug: 182885307
Test: m nothing
Change-Id: I964af3cb9a3e7a1dfbd9d5176a702591f6b19f16
This commit is contained in:
Paul Duffin
2021-03-22 23:21:32 +00:00
parent 2e6f90e0d0
commit c3e6ce04d9
4 changed files with 35 additions and 57 deletions

View File

@@ -199,7 +199,7 @@ func TestStubsVersions(t *testing.T) {
},
}
`
config := TestConfig(buildDir, android.Android, nil, bp, nil)
config := TestConfig(t.TempDir(), android.Android, nil, bp, nil)
config.TestProductVariables.Platform_version_active_codenames = []string{"R"}
ctx := testCcWithConfig(t, config)
@@ -222,7 +222,7 @@ func TestStubsVersions_NotSorted(t *testing.T) {
},
}
`
config := TestConfig(buildDir, android.Android, nil, bp, nil)
config := TestConfig(t.TempDir(), android.Android, nil, bp, nil)
config.TestProductVariables.Platform_version_active_codenames = []string{"R"}
testCcErrorWithConfig(t, `"libfoo" .*: versions: not sorted`, config)
}