tests: guard eina bool variable to avoid compilation failure on windows

The timeout_reached bool is only used in this function when HAVE_FORK is
available. This is not the case on windows. Eina.h would only be
included with fork available so the Eina_Bool type causes a compilation
fail on windows. Guarding them as the other parts of the function using
it solves the problem.

Reviewed-by: Vincent Torri <vincent.torri@gmail.com>
Differential Revision: https://phab.enlightenment.org/D7947
This commit is contained in:
Stefan Schmidt 2019-02-14 10:40:13 +01:00
parent c695dde8c3
commit b39d3990e9
1 changed files with 2 additions and 0 deletions

View File

@ -287,7 +287,9 @@ _efl_suite_build_and_run(int argc, const char **argv, const char *suite_name, co
int do_fork;
int num_forks = 0;
int can_fork = 0;
#ifdef HAVE_FORK
Eina_Bool timeout_reached = EINA_FALSE;
#endif
#ifdef ENABLE_TIMING_INFO
double tstart = 0.0, tcstart = 0.0;
int timing = _timing_enabled();