Apply shared library extension name according to OS (#680)
author이성재/동작제어Lab(SR)/Principal Engineer/삼성전자 <sj925.lee@samsung.com>
Tue, 17 Jul 2018 11:51:20 +0000 (20:51 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Tue, 17 Jul 2018 11:51:20 +0000 (20:51 +0900)
* apply dll extension name according to OS.

Signed-off-by: Sung-Jae Lee <sj925.lee@samsung.com>
contrib/nnc/src/module/plugin/PluginProxy.test.cpp

index 9265243..9a5d305 100644 (file)
@@ -26,7 +26,11 @@ TEST(CONTRIB_NNC, PluginProxy)
   // Create PluginProxy with sample plugin
   std::shared_ptr<PluginProxy> 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 '<<'