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
This commit is contained in:
Daniel Hirt 2018-11-16 00:29:32 +02:00
parent 3a223530d9
commit de72dd5730
1 changed files with 3 additions and 2 deletions

View File

@ -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);