summaryrefslogtreecommitdiff
path: root/android/module_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'android/module_test.go')
-rw-r--r--android/module_test.go26
1 files changed, 26 insertions, 0 deletions
diff --git a/android/module_test.go b/android/module_test.go
index d64e3a591..d76d9b329 100644
--- a/android/module_test.go
+++ b/android/module_test.go
@@ -1080,3 +1080,29 @@ func TestOutputFileForModule(t *testing.T) {
})
}
}
+
+func TestVintfFragmentModulesChecksPartition(t *testing.T) {
+ bp := `
+ vintf_fragment {
+ name: "vintfModA",
+ src: "test_vintf_file",
+ vendor: true,
+ }
+ deps {
+ name: "modA",
+ vintf_fragment_modules: [
+ "vintfModA",
+ ]
+ }
+ `
+
+ testPreparer := GroupFixturePreparers(
+ PrepareForTestWithAndroidBuildComponents,
+ prepareForModuleTests,
+ )
+
+ testPreparer.
+ ExtendWithErrorHandler(FixtureExpectsOneErrorPattern(
+ "Module .+ and Vintf_fragment .+ are installed to different partitions.")).
+ RunTestWithBp(t, bp)
+}