tests: Add elm_test_helper_wait_flag to avoid infinite loop
authorRyuan Choi <ryuan.choi@gmail.com>
Wed, 16 Jul 2014 14:17:31 +0000 (23:17 +0900)
committerRyuan Choi <ryuan.choi@gmail.com>
Wed, 16 Jul 2014 14:31:58 +0000 (23:31 +0900)
commit4938a7c246758af601986f1706b0a23b68b6b77d
tree7ccf38da1077f9ed45827d48cb9896d840c133f3
parentf7c43bff97551a83625808ab28465d13c5db638a
tests: Add elm_test_helper_wait_flag to avoid infinite loop

Test of elm_fileselector_selected and future tests may have conditional loop
which some flag.
This patch adds elm_test_helper_wait_flag, simple wrapper of the loop with timer
in order to exit the loop when expected callbacks are not called.
legacy/elementary/src/tests/Makefile.am
legacy/elementary/src/tests/elm_suite.h
legacy/elementary/src/tests/elm_test_fileselector.c
legacy/elementary/src/tests/elm_test_helper.c [new file with mode: 0644]
legacy/elementary/src/tests/elm_test_helper.h [new file with mode: 0644]