From de72dd57303af131a759301bbe93da8dc97cd075 Mon Sep 17 00:00:00 2001 From: Daniel Hirt Date: Fri, 16 Nov 2018 00:29:32 +0200 Subject: [PATCH] Evas textblock: fix test to use provided hyphen dictionary This fixes the test suite so it does not rely on the system's dictionary files. Fixes T7466 --- src/tests/evas/evas_test_textblock.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/tests/evas/evas_test_textblock.c b/src/tests/evas/evas_test_textblock.c index 29ab7110f7..ad6d806331 100644 --- a/src/tests/evas/evas_test_textblock.c +++ b/src/tests/evas/evas_test_textblock.c @@ -4148,6 +4148,9 @@ EFL_START_TEST(evas_textblock_hyphenation) Evas_Coord w, fw; const char *buf = "Automati-"; + + setenv("EVAS_DICTS_HYPHEN_DIR", TESTS_DIC_DIR, 1); + evas_object_textblock_text_markup_set(tb, buf); evas_object_textblock_size_formatted_get(tb, &w, NULL); evas_object_resize(tb, w, 100); @@ -4202,8 +4205,6 @@ EFL_START_TEST(evas_textblock_hyphenation) evas_object_textblock_text_markup_set(tb, buf); _hyphenation_width_stress(tb, cur); - setenv("EVAS_DICTS_HYPHEN_DIR", TESTS_DIC_DIR, 1); - buf = "europäi-"; evas_object_textblock_text_markup_set(tb, buf); evas_object_textblock_size_formatted_get(tb, &w, NULL);