eio-tests: fix deadlocking of the testsuite
authorMarcel Hollerbach <mail@marcel-hollerbach.de>
Tue, 4 Dec 2018 15:14:25 +0000 (16:14 +0100)
committerSangHyeon Jade Lee <sh10233.lee@samsung.com>
Thu, 27 Dec 2018 02:34:11 +0000 (11:34 +0900)
commitf435a43686487264752e5ec54b0d70401eb63919
tree698d1eccb0348ab8215c81f1c0b241946a4e8629
parent74df539fa93fcc1bacdc7c95beaf0ee50fed7923
eio-tests: fix deadlocking of the testsuite

what happens was is that efl_model_children_count_get trigger the
monitoring to start. However, that means that *sometimes* the created
file in this test was sometimes called in a ADDED event due to the
listing of files, and sometimes due to the event of a newly added file.
The problem here is that when the ADDED event is added due to the file
listing and not the monitoring, then there *could* be a ADDED event and
the deletion of the file will not trigger a REMOVED event. Which is a
bug.

However, up to this point it is not fully clear to me if this is
solvable with this setup of monitoring or not. So this test is changed
to not trigger this deadlock anymore, the idea of the test is still
tested, just in another way.

ref T7478

Differential Revision: https://phab.enlightenment.org/D7412
src/tests/eio/eio_model_test_monitor_add.c