Evas textblock: fix test to use provided hyphen dictionary
authorDaniel Hirt <hirt.danny@gmail.com>
Thu, 15 Nov 2018 22:29:32 +0000 (00:29 +0200)
committerSangHyeon Jade Lee <sh10233.lee@samsung.com>
Tue, 20 Nov 2018 07:10:39 +0000 (16:10 +0900)
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

index 29ab711..ad6d806 100644 (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);