Mercurial > hg > orthanc
comparison UnitTestsSources/PluginsTests.cpp @ 1026:a13ccd93df28
fix OS X build
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 10 Jul 2014 12:18:40 +0200 |
parents | 9b8298234254 |
children | 57400f233de8 |
comparison
equal
deleted
inserted
replaced
1025:da2226739305 | 1026:a13ccd93df28 |
---|---|
53 ASSERT_THROW(l.GetFunction("world"), OrthancException); | 53 ASSERT_THROW(l.GetFunction("world"), OrthancException); |
54 ASSERT_TRUE(l.GetFunction("dlopen") != NULL); | 54 ASSERT_TRUE(l.GetFunction("dlopen") != NULL); |
55 ASSERT_TRUE(l.HasFunction("dlclose")); | 55 ASSERT_TRUE(l.HasFunction("dlclose")); |
56 ASSERT_FALSE(l.HasFunction("world")); | 56 ASSERT_FALSE(l.HasFunction("world")); |
57 | 57 |
58 #elif defined(__APPLE__) && defined(__MACH__) | |
59 SharedLibrary l("libdl.dylib"); | |
60 ASSERT_THROW(l.GetFunction("world"), OrthancException); | |
61 ASSERT_TRUE(l.GetFunction("dlopen") != NULL); | |
62 ASSERT_TRUE(l.HasFunction("dlclose")); | |
63 ASSERT_FALSE(l.HasFunction("world")); | |
64 | |
58 #else | 65 #else |
59 #error Support your platform here | 66 #error Support your platform here |
60 #endif | 67 #endif |
61 } | 68 } |