Evas textblock: Disable hyphenation tests when hyphenation is disabled.
authorTom Hacohen <tom@stosb.com>
Fri, 12 Feb 2016 12:12:00 +0000 (12:12 +0000)
committerTom Hacohen <tom@stosb.com>
Fri, 12 Feb 2016 12:21:06 +0000 (12:21 +0000)
src/tests/evas/evas_test_textblock.c

index 332a658..895021b 100644 (file)
@@ -3866,6 +3866,7 @@ START_TEST(evas_textblock_obstacle)
 }
 END_TEST;
 
+#ifdef HAVE_HYPHEN
 static void
 _hyphenation_width_stress(Evas_Object *tb, Evas_Textblock_Cursor *cur)
 {
@@ -3929,6 +3930,7 @@ START_TEST(evas_textblock_hyphenation)
    END_TB_TEST();
 }
 END_TEST;
+#endif
 
 void evas_test_textblock(TCase *tc)
 {
@@ -3952,6 +3954,8 @@ void evas_test_textblock(TCase *tc)
    tcase_add_test(tc, evas_textblock_items);
    tcase_add_test(tc, evas_textblock_delete);
    tcase_add_test(tc, evas_textblock_obstacle);
+#ifdef HAVE_HYPHEN
    tcase_add_test(tc, evas_textblock_hyphenation);
+#endif
 }