From: 이성재/동작제어Lab(SR)/Principal Engineer/삼성전자 Date: Tue, 17 Jul 2018 11:51:20 +0000 (+0900) Subject: Apply shared library extension name according to OS (#680) X-Git-Tag: nncc_backup~2397 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0f862aacc257f026b7a950cdabcdd9a133887e52;p=platform%2Fcore%2Fml%2Fnnfw.git Apply shared library extension name according to OS (#680) * apply dll extension name according to OS. Signed-off-by: Sung-Jae Lee --- diff --git a/contrib/nnc/src/module/plugin/PluginProxy.test.cpp b/contrib/nnc/src/module/plugin/PluginProxy.test.cpp index 9265243..9a5d305 100644 --- a/contrib/nnc/src/module/plugin/PluginProxy.test.cpp +++ b/contrib/nnc/src/module/plugin/PluginProxy.test.cpp @@ -26,7 +26,11 @@ TEST(CONTRIB_NNC, PluginProxy) // Create PluginProxy with sample plugin std::shared_ptr pp = PluginProxy::create(STRING(CMAKE_SAMPLE_PLUGIN_ABS_PATH)); ASSERT_EQ(pp->getPluginPath(), STRING(CMAKE_SAMPLE_PLUGIN_ABS_PATH)); +#ifdef __APPLE__ + ASSERT_EQ(pp->getPluginName(), "libsome_parser.dylib"); +#else /* __APPLE__ */ ASSERT_EQ(pp->getPluginName(), "libsome_parser.so"); +#endif /* __APPLE__ */ ASSERT_NE(&pp->getPluginInstance(), nullptr); // Operator '<<'