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.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/android/module_test.go b/android/module_test.go
index 6e6d44909..3b81dedc7 100644
--- a/android/module_test.go
+++ b/android/module_test.go
@@ -1110,3 +1110,14 @@ func TestVintfFragmentModulesChecksPartition(t *testing.T) {
"Module .+ and Vintf_fragment .+ are installed to different partitions.")).
RunTestWithBp(t, bp)
}
+
+func TestInvalidModuleName(t *testing.T) {
+ bp := `
+ deps {
+ name: "fo o",
+ }
+ `
+ prepareForModuleTests.
+ ExtendWithErrorHandler(FixtureExpectsOneErrorPattern(`should use a valid name`)).
+ RunTestWithBp(t, bp)
+}