tests: guard eina bool variable to avoid compilation failure on windows
authorStefan Schmidt <s.schmidt@samsung.com>
Thu, 14 Feb 2019 09:40:13 +0000 (10:40 +0100)
committerWonki Kim <wonki_.kim@samsung.com>
Fri, 8 Mar 2019 11:49:34 +0000 (20:49 +0900)
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

src/tests/efl_check.h

index 81fa184..d5b0d2f 100644 (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();