tests: do not attempt to parallelize test suites with only 1 test case
authorMike Blumenkrantz <zmike@osg.samsung.com>
Mon, 16 Apr 2018 09:45:49 +0000 (11:45 +0200)
committerWonki Kim <wonki_.kim@samsung.com>
Mon, 28 May 2018 10:26:04 +0000 (19:26 +0900)
Summary: Depends on D5911

Reviewers: stefan_schmidt

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D5916

src/tests/efl_check.h

index a2201f2..faa185b 100644 (file)
@@ -256,7 +256,7 @@ _efl_suite_build_and_run(int argc, const char **argv, const char *suite_name, co
    sr = srunner_create(s);
    do_fork = _efl_test_fork_has(sr);
    if (do_fork)
-     can_fork = strcmp(suite_name, "Eldbus" /* T6848 */) && strcmp(suite_name, "eina_init_module");
+     can_fork = strcmp(suite_name, "Eldbus" /* T6848 */) && strcmp(suite_name, "eina_init_module") && etc[1].test_case /* can't parallelize 1 test */;
 
    for (i = 0; etc[i].test_case; ++i)
      {