Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bec87ec3 authored by Thiébaud Weksteen's avatar Thiébaud Weksteen Committed by Automerger Merge Worker
Browse files

rust: add darwin as host arch am: 4f6c7669

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1442775

Change-Id: Id000716f42751f9efb2bcce097e463e948428df0
parents f9edb0a5 4f6c7669
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -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())
		}
	}
}