diff options
author | 2023-10-19 17:12:13 +0900 | |
---|---|---|
committer | 2023-10-19 23:08:28 +0000 | |
commit | cd9c984c9ec7e14080d5ccc4f50868a2974b29ea (patch) | |
tree | d61b77805414157d76004260f4a2f62befcfa0f2 /libnativeloader/native_loader_test.cpp | |
parent | 760e495e79c03ce9c748a93ff42e6e3dd00bfc05 (diff) |
Do not expect VNDK namespace when VNDK is deprecated
UnbundledVendorApp test from libnativeloader tests expects VNDK
namespace as default, because all devices using mainline was treblelized
and had vendor VNDK version. However, this is no longer valid because of
VNDK deprecation, so test should check 'ro.vndk.version' property
exists, and do not expect VNDK namespace if the property is empty.
Bug: 290159430
Test: libnativeloader_test passed with VNDK deprecated device
Change-Id: I3fd14beee676c86dbc066aa51b6c6bb57962283b
Diffstat (limited to 'libnativeloader/native_loader_test.cpp')
-rw-r--r-- | libnativeloader/native_loader_test.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libnativeloader/native_loader_test.cpp b/libnativeloader/native_loader_test.cpp index 547fded4b4..72348ed364 100644 --- a/libnativeloader/native_loader_test.cpp +++ b/libnativeloader/native_loader_test.cpp @@ -348,7 +348,9 @@ TEST_P(NativeLoaderTest_Create, UnbundledVendorApp) { expected_permitted_path = expected_permitted_path + ":/vendor/" LIB_DIR; expected_shared_libs_to_platform_ns = default_public_libraries() + ":" + llndk_libraries_vendor(); - expected_link_with_vndk_ns = true; + if (android::base::GetProperty("ro.vndk.version", "") != "") { + expected_link_with_vndk_ns = true; + } SetExpectations(); RunTest(); } @@ -386,7 +388,9 @@ TEST_P(NativeLoaderTest_Create, UnbundledProductApp) { expected_permitted_path + ":/product/" LIB_DIR ":/system/product/" LIB_DIR; expected_shared_libs_to_platform_ns = append_extended_libraries(default_public_libraries() + ":" + llndk_libraries_product()); - expected_link_with_vndk_product_ns = true; + if (android::base::GetProperty("ro.product.vndk.version", "") != "") { + expected_link_with_vndk_product_ns = true; + } } SetExpectations(); |