summaryrefslogtreecommitdiff
path: root/user/rttr/dlclose-doesnt-work.patch
blob: 146f16944ab760f628564ed488e33a99324d416c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
musl doesn't support dlclose, so don't test it.

--- rttr-0.9.6/src/unit_tests/misc/library_test.cpp.old	2018-03-26 21:31:07.000000000 +0000
+++ rttr-0.9.6/src/unit_tests/misc/library_test.cpp	2019-04-19 00:10:52.775313358 +0000
@@ -71,7 +71,7 @@
         CHECK(lib.get_types().size()             == 0);
         CHECK(lib.get_global_properties().size() == 0);
         CHECK(lib.get_global_methods().size()    == 0);
-        CHECK(does_plugin_type_exist()           == false);
+        //CHECK(does_plugin_type_exist()           == false);
     }
 
     SECTION("negative test")
@@ -102,7 +102,7 @@
 #else
     #error "Don't know library suffix on this plattform!"
 #endif
-        CHECK(does_plugin_type_exist()          == false);
+        //CHECK(does_plugin_type_exist()          == false);
         CHECK(lib.load()                        == true);
         REQUIRE(lib.get_error_string().empty()  == true);
         CHECK(does_plugin_type_exist()          == true);
@@ -110,7 +110,7 @@
         CHECK(lib.get_error_string().empty()    == true);
         CHECK(lib.unload()                      == true);
 
-        CHECK(does_plugin_type_exist()          == false);
+        //CHECK(does_plugin_type_exist()          == false);
     }
 }
 
@@ -122,19 +122,19 @@
     {
         library lib(library_name);
 
-        CHECK(does_plugin_type_exist()              == false);
+        //CHECK(does_plugin_type_exist()              == false);
         CHECK(lib.load()                            == true);
         CHECK(lib.load()                            == true);
 
         REQUIRE(lib.get_error_string().empty()      == true);
         CHECK(does_plugin_type_exist()              == true);
 
-        CHECK(lib.get_types().size()                > 1);
+        //CHECK(lib.get_types().size()                > 1);
         CHECK(lib.get_global_properties().size()    == 0);
         CHECK(lib.get_global_methods().size()       == 0);
 
         CHECK(lib.unload() == true);
-        CHECK(does_plugin_type_exist() == false);
+        //CHECK(does_plugin_type_exist() == false);
     }
 
     SECTION("load the same lib from different instance multiple times")
@@ -142,7 +142,7 @@
         library lib1(library_name);
         library lib2(library_name);
 
-        CHECK(does_plugin_type_exist() == false);
+        //CHECK(does_plugin_type_exist() == false);
 
         CHECK(lib1.load() == true);
         CHECK(lib2.load() == true);
@@ -156,26 +156,26 @@
 
         CHECK(lib2.unload() == true);
 
-        CHECK(does_plugin_type_exist() == false);
+        //CHECK(does_plugin_type_exist() == false);
     }
 
     SECTION("load the same lib multiple times 2xload() and 2xunload()")
     {
         library lib(library_name);
 
-        CHECK(does_plugin_type_exist() == false);
+        //CHECK(does_plugin_type_exist() == false);
 
         CHECK(lib.load() == true);
         CHECK(does_plugin_type_exist() == true);
 
         CHECK(lib.unload() == true);
-        CHECK(does_plugin_type_exist() == false);
+        //CHECK(does_plugin_type_exist() == false);
 
         CHECK(lib.load() == true);
         CHECK(does_plugin_type_exist() == true);
 
         CHECK(lib.unload() == true);
-        CHECK(does_plugin_type_exist() == false);
+        //CHECK(does_plugin_type_exist() == false);
     }
 }