diff options
author | ThiƩbaud Weksteen <tweek@google.com> | 2020-09-30 13:33:41 +0200 |
---|---|---|
committer | ThiƩbaud Weksteen <tweek@google.com> | 2020-09-30 14:16:12 +0200 |
commit | 4f6c766992da0a6d169d8b0588f94e409d0772df (patch) | |
tree | 5f18b3fda6e67e91a8a85954d311a7f4f85d6b48 /rust/project_json_test.go | |
parent | d2ff08710b539dc798c29828e639cf577dad40bf (diff) |
rust: add darwin as host arch
Bug: 169739272
Test: m nothing
Change-Id: I3ef2a3dd7e80b9fe47edb6eb04ed9d37e8d58096
Diffstat (limited to 'rust/project_json_test.go')
-rw-r--r-- | rust/project_json_test.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/rust/project_json_test.go b/rust/project_json_test.go index 8c1c43623..11964f345 100644 --- a/rust/project_json_test.go +++ b/rust/project_json_test.go @@ -139,10 +139,11 @@ func TestProjectJsonBindGen(t *testing.T) { t.Fatalf("Unexpected type for root_module: %v", crate["root_module"]) } if strings.Contains(rootModule, "libbindings1") && !strings.Contains(rootModule, "android_arm64") { - t.Errorf("The source for libbindings1 does not contain android_arm64, got %v", rootModule) + t.Errorf("The source path for libbindings1 does not contain android_arm64, got %v", rootModule) } - if strings.Contains(rootModule, "libbindings2") && !strings.Contains(rootModule, "linux_glibc") { - t.Errorf("The source for libbindings2 does not contain linux_glibc, got %v", rootModule) + if strings.Contains(rootModule, "libbindings2") && !strings.Contains(rootModule, android.BuildOs.String()) { + t.Errorf("The source path for libbindings2 does not contain the BuildOs, got %v; want %v", + rootModule, android.BuildOs.String()) } } } |