Mercurial > hg > orthanc
comparison UnitTestsSources/PluginsTests.cpp @ 1032:57400f233de8
fix KFreeBSD build
author | jodogne |
---|---|
date | Thu, 10 Jul 2014 17:41:22 +0200 |
parents | a13ccd93df28 |
children | 6e7e5ed91c2d |
comparison
equal
deleted
inserted
replaced
1031:703a552b52bc | 1032:57400f233de8 |
---|---|
46 ASSERT_THROW(l.GetFunction("world"), OrthancException); | 46 ASSERT_THROW(l.GetFunction("world"), OrthancException); |
47 ASSERT_TRUE(l.GetFunction("GetVersionExW") != NULL); | 47 ASSERT_TRUE(l.GetFunction("GetVersionExW") != NULL); |
48 ASSERT_TRUE(l.HasFunction("GetVersionExW")); | 48 ASSERT_TRUE(l.HasFunction("GetVersionExW")); |
49 ASSERT_FALSE(l.HasFunction("world")); | 49 ASSERT_FALSE(l.HasFunction("world")); |
50 | 50 |
51 #elif defined(__linux) | 51 #elif defined(__linux) || defined(__FreeBSD_kernel__) |
52 SharedLibrary l("libdl.so"); | 52 SharedLibrary l("libdl.so"); |
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")); |