HomePhabricator

csharp: fix some unit tests that rely on garbage collection

Authored by vitor.sousa on Jul 12 2019, 1:09 PM.

Description

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

Details

Committed
vitor.sousaJul 12 2019, 1:15 PM
Reviewer
lauromoura
Differential Revision
D9271: csharp: fix some unit tests that rely on garbage collection
Parents
rEFLb799ba1a10b0: evas: add a test for loading Android 9patch file.
Branches
Unknown
Tags
Unknown