Mercurial > hg > orthanc
diff UnitTestsSources/PluginsTests.cpp @ 1578:09715095fc53
cont
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 25 Aug 2015 15:33:36 +0200 |
parents | f967bdf8534e |
children | b1291df2f780 |
line wrap: on
line diff
--- a/UnitTestsSources/PluginsTests.cpp Tue Aug 25 15:10:45 2015 +0200 +++ b/UnitTestsSources/PluginsTests.cpp Tue Aug 25 15:33:36 2015 +0200 @@ -37,6 +37,17 @@ using namespace Orthanc; + +#if ORTHANC_PLUGINS_ENABLED == 1 + +TEST(SharedLibrary, Enumerations) +{ + // The plugin engine cannot work if the size of an enumeration does + // not correspond to the size of "int32_t" + ASSERT_EQ(sizeof(int32_t), sizeof(OrthancPluginErrorCode)); +} + + TEST(SharedLibrary, Basic) { #if defined(_WIN32) @@ -74,3 +85,5 @@ #error Support your platform here #endif } + +#endif