summaryrefslogtreecommitdiff
path: root/src/tests/efl_mono/Eo.cs
diff options
context:
space:
mode:
authorVitor Sousa <vitorsousa@expertisesolutions.com.br>2019-07-12 17:09:41 -0300
committerVitor Sousa <vitorsousa@expertisesolutions.com.br>2019-07-12 17:15:37 -0300
commitc3c81263fd4504c8558ea47a48d0e764997b21d0 (patch)
tree8c3fad3b56466d9a319e2deaab38d29500e7948b /src/tests/efl_mono/Eo.cs
parentb799ba1a10b0f4906a5487474ba9f14db465caeb (diff)
csharp: fix some unit tests that rely on garbage collection
Summary: Fix unit tests `TestEoInherit.inherited_collected` and `TestFunctionPointers.set_callback_inherited_called_from_c`. Iterate through garbage collection and EFL main loop more times to ensure that allocated objects are really collected. Also expand the test utility method `CollectAndIterate` to receive the number of times to call the whole cleaning iteration process (not only the garbage collection). Test Plan: `meson test` Reviewers: lauromoura Reviewed By: lauromoura Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9271
Diffstat (limited to 'src/tests/efl_mono/Eo.cs')
-rw-r--r--src/tests/efl_mono/Eo.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/efl_mono/Eo.cs b/src/tests/efl_mono/Eo.cs
index be66f0842c..aa3565dd76 100644
--- a/src/tests/efl_mono/Eo.cs
+++ b/src/tests/efl_mono/Eo.cs
@@ -120,7 +120,7 @@ class TestEoInherit
120 public static void inherited_collected() 120 public static void inherited_collected()
121 { 121 {
122 var wref = CreateCollectableInherited(); 122 var wref = CreateCollectableInherited();
123 Test.CollectAndIterate(); 123 Test.CollectAndIterate(300, 10);
124 124
125 Test.AssertNull(wref.Target); 125 Test.AssertNull(wref.Target);
126 } 126 }