comparison UnitTestsSources/PluginsTests.cpp @ 907:9b8298234254 plugins

documentation
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 19 Jun 2014 14:28:43 +0200
parents 690aeb4cb899
children a13ccd93df28
comparison
equal deleted inserted replaced
906:cbc0ea03dffe 907:9b8298234254
57 57
58 #else 58 #else
59 #error Support your platform here 59 #error Support your platform here
60 #endif 60 #endif
61 } 61 }
62
63
64 TEST(SharedLibrary, Development)
65 {
66 PluginsManager manager;
67
68 #if defined(_WIN32)
69 //#error Support your platform here
70
71 #elif defined(__linux)
72 manager.RegisterPlugin("./libPluginTest.so");
73 ASSERT_THROW(manager.RegisterPlugin("./libPluginTest.so"), OrthancException);
74
75 //manager.ScanFolderForPlugins(".", true);
76
77 #else
78 #error Support your platform here
79 #endif
80 }