summaryrefslogtreecommitdiff
path: root/src/tests/efl_mono/TestUtils.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/efl_mono/TestUtils.cs')
-rw-r--r--src/tests/efl_mono/TestUtils.cs13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/tests/efl_mono/TestUtils.cs b/src/tests/efl_mono/TestUtils.cs
index 21b8ec7794..bbc37b5e65 100644
--- a/src/tests/efl_mono/TestUtils.cs
+++ b/src/tests/efl_mono/TestUtils.cs
@@ -200,14 +200,17 @@ public static class Test
200 /// <summary>Runs a number of garbage collections and iterate the main loop. 200 /// <summary>Runs a number of garbage collections and iterate the main loop.
201 /// The iteration is needed to make sure objects collected in the GC thread 201 /// The iteration is needed to make sure objects collected in the GC thread
202 /// are efl_unref'd in the main thread.</summary> 202 /// are efl_unref'd in the main thread.</summary>
203 public static void CollectAndIterate(int iterations=1000) 203 public static void CollectAndIterate(int iterations=1000, int global_iterations=1)
204 { 204 {
205 for (int i = 0; i < iterations; i++) 205 for (int g = 0; g < global_iterations; ++g)
206 { 206 {
207 System.GC.Collect(); 207 for (int i = 0; i < iterations; ++i)
208 {
209 System.GC.Collect();
210 }
211 System.GC.WaitForPendingFinalizers();
212 Efl.App.AppMain.Iterate();
208 } 213 }
209 System.GC.WaitForPendingFinalizers();
210 Efl.App.AppMain.Iterate();
211 } 214 }
212 215
213} 216}