OSDN Git Service

Fix dlext.ns_smoke test
authorDimitry Ivanov <dimitry@google.com>
Wed, 13 Jul 2016 23:28:20 +0000 (16:28 -0700)
committerDimitry Ivanov <dimitry@google.com>
Thu, 25 Aug 2016 22:22:50 +0000 (15:22 -0700)
Check for updated error_message

Bug: http://b/31097098
Test: adb shell bionic-unit-tests32/64 --gtest_filter=dlext.ns*
(cherry picked from commit 3a6c6b3254b2033a9a0246013a2c8b486800624b)

Change-Id: I0f0dd59a6deba016d37d0ccc80113b62db86c1c2

tests/dlext_test.cpp

index ee61d5f..5501c8e 100644 (file)
@@ -628,7 +628,9 @@ TEST(dlext, ns_smoke) {
 
   ASSERT_FALSE(android_init_namespaces(path.c_str(), nullptr));
   ASSERT_STREQ("android_init_namespaces failed: error initializing public namespace: "
-               "\"libnstest_public.so\" was not found in the default namespace", dlerror());
+               "a library with soname \"libnstest_public.so\" was not found in the "
+               "default namespace",
+               dlerror());
 
   const std::string lib_path = std::string(getenv("ANDROID_DATA")) + NATIVE_TESTS_PATH;