diff options
| author | 2023-04-11 20:26:04 +0000 | |
|---|---|---|
| committer | 2023-04-11 20:26:04 +0000 | |
| commit | a80b113f550438a365420a1e2316594dbecaaa1f (patch) | |
| tree | 3a999717fea2a876a635e5bbc025a9de62a60c1b /android/namespace_test.go | |
| parent | bbd707fadf51a6fa04ff44d8452c48ae485baffc (diff) | |
| parent | 671dc2319bf916a8a3d2d36506fbcc313b60f0c2 (diff) | |
Merge "Add name hint to Soong."
Diffstat (limited to 'android/namespace_test.go')
| -rw-r--r-- | android/namespace_test.go | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/android/namespace_test.go b/android/namespace_test.go index 7a387a0bd..ea51c6eae 100644 --- a/android/namespace_test.go +++ b/android/namespace_test.go @@ -174,9 +174,10 @@ func TestDependingOnModuleInNonImportedNamespace(t *testing.T) { `, }), ). - ExtendWithErrorHandler(FixtureExpectsOneErrorPattern(`\Qdir3/Android.bp:4:5: "b" depends on undefined module "a" + ExtendWithErrorHandler(FixtureExpectsOneErrorPattern(`\Qdir3/Android.bp:4:5: "b" depends on undefined module "a". Module "b" is defined in namespace "dir3" which can read these 2 namespaces: ["dir3" "."] -Module "a" can be found in these namespaces: ["dir1" "dir2"]\E`)). +Module "a" can be found in these namespaces: ["dir1" "dir2"]\E +Or did you mean ["soong_namespace"]?`)). RunTest(t) } @@ -421,9 +422,10 @@ func TestNamespacesDontInheritParentNamespaces(t *testing.T) { `, }), ). - ExtendWithErrorHandler(FixtureExpectsOneErrorPattern(`\Qdir1/subdir1/Android.bp:4:5: "b" depends on undefined module "a" + ExtendWithErrorHandler(FixtureExpectsOneErrorPattern(`\Qdir1/subdir1/Android.bp:4:5: "b" depends on undefined module "a". Module "b" is defined in namespace "dir1/subdir1" which can read these 2 namespaces: ["dir1/subdir1" "."] -Module "a" can be found in these namespaces: ["dir1"]\E`)). +Module "a" can be found in these namespaces: ["dir1"]\E +Or did you mean ["soong_namespace"]?`)). RunTest(t) } @@ -481,9 +483,10 @@ func TestNamespaceImportsNotTransitive(t *testing.T) { `, }), ). - ExtendWithErrorHandler(FixtureExpectsOneErrorPattern(`\Qdir3/Android.bp:5:5: "c" depends on undefined module "a" + ExtendWithErrorHandler(FixtureExpectsOneErrorPattern(`\Qdir3/Android.bp:5:5: "c" depends on undefined module "a". Module "c" is defined in namespace "dir3" which can read these 3 namespaces: ["dir3" "dir2" "."] -Module "a" can be found in these namespaces: ["dir1"]\E`)). +Module "a" can be found in these namespaces: ["dir1"]\E +Or did you mean ["b"]?`)). RunTest(t) } |