diff options
| author | 2021-07-23 00:07:01 +0000 | |
|---|---|---|
| committer | 2021-07-23 00:07:01 +0000 | |
| commit | 78fd15f7d6c500b7f2374df4896dd1768bf7d469 (patch) | |
| tree | dcd3ae2dd8772cb48e2586a91034a387902f39d1 /rust/project_json_test.go | |
| parent | 2e4c0eb90e31e995680f0f82826d86c5c9591d8a (diff) | |
| parent | 0c66bc615b399d2201b15b4c9052066db04a3f5e (diff) | |
Merge "Replace android.BuildOs with Config.BuildOS"
Diffstat (limited to 'rust/project_json_test.go')
| -rw-r--r-- | rust/project_json_test.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/rust/project_json_test.go b/rust/project_json_test.go index 09d30dbde..bdd54c59b 100644 --- a/rust/project_json_test.go +++ b/rust/project_json_test.go @@ -176,6 +176,8 @@ func TestProjectJsonBinary(t *testing.T) { } func TestProjectJsonBindGen(t *testing.T) { + buildOS := android.TestConfig(t.TempDir(), nil, "", nil).BuildOS + bp := ` rust_library { name: "libd", @@ -214,9 +216,9 @@ func TestProjectJsonBindGen(t *testing.T) { if strings.Contains(rootModule, "libbindings1") && !strings.Contains(rootModule, "android_arm64") { t.Errorf("The source path for libbindings1 does not contain android_arm64, got %v", rootModule) } - if strings.Contains(rootModule, "libbindings2") && !strings.Contains(rootModule, android.BuildOs.String()) { + if strings.Contains(rootModule, "libbindings2") && !strings.Contains(rootModule, buildOS.String()) { t.Errorf("The source path for libbindings2 does not contain the BuildOs, got %v; want %v", - rootModule, android.BuildOs.String()) + rootModule, buildOS.String()) } // Check that libbindings1 does not depend on itself. if strings.Contains(rootModule, "libbindings1") { |