csharp: fix some unit tests that rely on garbage collection
authorVitor Sousa <vitorsousa@expertisesolutions.com.br>
Fri, 12 Jul 2019 20:09:41 +0000 (17:09 -0300)
committerTaehyub Kim <taehyub.kim@samsung.com>
Wed, 17 Jul 2019 07:27:16 +0000 (16:27 +0900)
commit568fdde77fd50e4517aa07c3457454f5dcf6269d
tree9bdc3bcc392b5c234c5ae9f14cfdb7760e9ab7e0
parent6b1346c6492414a4604b09badc047a4ab3411549
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
src/tests/efl_mono/Eo.cs
src/tests/efl_mono/FunctionPointers.cs
src/tests/efl_mono/TestUtils.cs