From 82c93f87141c4753d4d86e7480b1852f7ee71445 Mon Sep 17 00:00:00 2001 From: Daniel Zaoui Date: Mon, 3 Dec 2018 21:27:47 +0200 Subject: [PATCH] Suite: fix scale issues Summary: Because the environment variables were set on the player and not on the application, they were not affecting the application, leading to issues when the EFL configuration scaling is different of 1.0. By appending them right before the application name, they are taken in consideration, fixing the issue. Reviewers: jsuya, YOhoho Reviewed By: jsuya Differential Revision: https://phab.enlightenment.org/D7388 --- src/bin/exactness.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/bin/exactness.c b/src/bin/exactness.c index 06f472b..a2f32df 100644 --- a/src/bin/exactness.c +++ b/src/bin/exactness.c @@ -212,7 +212,7 @@ found: printf("STATUS %s: END - FAIL (%d/%d)\n", ent->name, nb_fails, n - 1); } -#define CONFIG "ELM_SCALE=1 ELM_FINGER_SIZE=10" +#define CONFIG "ELM_SCALE=1 ELM_FINGER_SIZE=10 " static Eina_Bool _run_command_prepare(const List_Entry *ent, char *buf) { @@ -239,8 +239,8 @@ ok: sbuf = eina_strbuf_new(); printf("STATUS %s: START\n", ent->name); eina_strbuf_append_printf(sbuf, - "%s %s exactness_play %s %s%s %s%.*s %s%s%s-t '%s' ", - CONFIG, _wrap_command ? _wrap_command : "", + "%s exactness_play %s %s%s %s%.*s %s%s%s-t '%s' ", + _wrap_command ? _wrap_command : "", _mode == RUN_SIMULATION ? "-s" : "", _fonts_dir ? "-f " : "", _fonts_dir ? _fonts_dir : "", _verbose ? "-" : "", _verbose, "vvvvvvvvvv", @@ -266,6 +266,7 @@ ok: if (ent->command) { eina_strbuf_append(sbuf, "-- "); + eina_strbuf_append(sbuf, CONFIG); eina_strbuf_append(sbuf, ent->command); } strncpy(buf, eina_strbuf_string_get(sbuf), SCHEDULER_CMD_SIZE-1);