测试结果中有多个库文件出现如下报错:
junit.framework.AssertionFailedError: dlopen failed: library “xxxxx.so” not found
一、
test_dlopenPublicLibraries的源码在JniStaticTest.java文件中(旧版本的Android源码中搜索不到这个测试项)
没有过多内容直接调用了"LinkerNamespacesHelper.runDlopenPublicLibraries()";
"runDlopenPublicLibraries"方法将多个预先定义的public so list中配置的库名组装到一个命名为publicLibs的List变量里面。
其中比较关键的一句是:
publicLibs.addAll(readPublicLibrariesFile(new File(VENDOR_CONFIG_FILE)))