summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2019-02-14 10:40:13 +0100
committerStefan Schmidt <s.schmidt@samsung.com>2019-02-14 13:00:54 +0100
commitb39d3990e9b7a5aa26e4db2bb980b50e56793203 (patch)
treec639c85a15aee8d04dda008ce3fe142b0455e74c
parentc695dde8c378fc095c74ac771fee6251073ce26b (diff)
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
-rw-r--r--src/tests/efl_check.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tests/efl_check.h b/src/tests/efl_check.h
index 81fa1844e8..d5b0d2fcc2 100644
--- a/src/tests/efl_check.h
+++ b/src/tests/efl_check.h
@@ -287,7 +287,9 @@ _efl_suite_build_and_run(int argc, const char **argv, const char *suite_name, co
287 int do_fork; 287 int do_fork;
288 int num_forks = 0; 288 int num_forks = 0;
289 int can_fork = 0; 289 int can_fork = 0;
290#ifdef HAVE_FORK
290 Eina_Bool timeout_reached = EINA_FALSE; 291 Eina_Bool timeout_reached = EINA_FALSE;
292#endif
291#ifdef ENABLE_TIMING_INFO 293#ifdef ENABLE_TIMING_INFO
292 double tstart = 0.0, tcstart = 0.0; 294 double tstart = 0.0, tcstart = 0.0;
293 int timing = _timing_enabled(); 295 int timing = _timing_enabled();