summaryrefslogtreecommitdiff
path: root/tests/test-break.c
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2019-11-25 14:58:32 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2019-11-25 14:58:32 +0800
commitb73284747ac937e31dc9191f84ed6e24284c88ee (patch)
treea5e82cf62ffdd902ef95a980a62569bc256b6304 /tests/test-break.c
parent53c2c907300f7a1b26a478ce0ed52cbfa76f6133 (diff)
downloadpango-b73284747ac937e31dc9191f84ed6e24284c88ee.tar.gz
tests/test-break.c: Only test Thai breaks with libthai available
The four.break test data file involves the Thai language, meaning that this test will fail unless we have libthai. Skip this test unless libthai is found.
Diffstat (limited to 'tests/test-break.c')
-rw-r--r--tests/test-break.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test-break.c b/tests/test-break.c
index 8549b678..47fa3009 100644
--- a/tests/test-break.c
+++ b/tests/test-break.c
@@ -305,6 +305,12 @@ main (int argc, char *argv[])
if (!strstr (name, "break"))
continue;
+#ifndef HAVE_LIBTHAI
+ /* four.break involves Thai, so only test it when we have libthai */
+ if (strstr (name, "four.break"))
+ continue;
+#endif
+
path = g_strdup_printf ("/break/%s", name);
g_test_add_data_func_full (path, g_test_build_filename (G_TEST_DIST, "breaks", name, NULL),
test_break, g_free);