Page MenuHomePhabricator

csharp: fix some unit tests that rely on garbage collection
ClosedPublic

Authored by vitor.sousa on Jul 10 2019, 2:37 PM.

Details

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

Diff Detail

Repository
rEFL core/efl
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
vitor.sousa created this revision.Jul 10 2019, 2:37 PM
vitor.sousa requested review of this revision.Jul 10 2019, 2:37 PM
lauromoura accepted this revision.Jul 10 2019, 2:41 PM
This revision is now accepted and ready to land.Jul 10 2019, 2:41 PM
This revision was automatically updated to reflect the committed changes.