comparison UnitTestsSources/PluginsTests.cpp @ 1976:325772dadcd6

Macro "__linux" (now obsolete) replaced by macro "__linux__"
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 14 Apr 2016 17:34:43 +0200
parents b1291df2f780
children dd609a99d39a
comparison
equal deleted inserted replaced
1975:730eedd9a5dc 1976:325772dadcd6
55 ASSERT_THROW(l.GetFunction("world"), OrthancException); 55 ASSERT_THROW(l.GetFunction("world"), OrthancException);
56 ASSERT_TRUE(l.GetFunction("GetVersionExW") != NULL); 56 ASSERT_TRUE(l.GetFunction("GetVersionExW") != NULL);
57 ASSERT_TRUE(l.HasFunction("GetVersionExW")); 57 ASSERT_TRUE(l.HasFunction("GetVersionExW"));
58 ASSERT_FALSE(l.HasFunction("world")); 58 ASSERT_FALSE(l.HasFunction("world"));
59 59
60 #elif defined(__linux) || defined(__FreeBSD_kernel__) 60 #elif defined(__linux__) || defined(__FreeBSD_kernel__)
61 SharedLibrary l("libdl.so"); 61 SharedLibrary l("libdl.so");
62 ASSERT_THROW(l.GetFunction("world"), OrthancException); 62 ASSERT_THROW(l.GetFunction("world"), OrthancException);
63 ASSERT_TRUE(l.GetFunction("dlopen") != NULL); 63 ASSERT_TRUE(l.GetFunction("dlopen") != NULL);
64 ASSERT_TRUE(l.HasFunction("dlclose")); 64 ASSERT_TRUE(l.HasFunction("dlclose"));
65 ASSERT_FALSE(l.HasFunction("world")); 65 ASSERT_FALSE(l.HasFunction("world"));