summaryrefslogtreecommitdiff
path: root/tests/testboundaries.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2013-06-07 21:10:44 -0400
committerMatthias Clasen <mclasen@redhat.com>2013-06-07 21:10:44 -0400
commit8ac9fc7faeff8908448e9da09a43873e2e0fe376 (patch)
treed606ebdd62c150ebe7fa25e909ac1b24a567f0be /tests/testboundaries.c
parentd489ad061d70526fc5f5cdae2273e9deabea6a17 (diff)
downloadpango-8ac9fc7faeff8908448e9da09a43873e2e0fe376.tar.gz
Avoid hard-dep on bleeding-edge GLib
If new test api is not available, do without it. In this case, the tests won't work installed, but they should still work uninstalled and in distcheck.
Diffstat (limited to 'tests/testboundaries.c')
-rw-r--r--tests/testboundaries.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/testboundaries.c b/tests/testboundaries.c
index 241e6859..feef19ce 100644
--- a/tests/testboundaries.c
+++ b/tests/testboundaries.c
@@ -317,7 +317,12 @@ test_boundaries (void)
{
gchar *text;
const gchar *filename;
+#if GLIB_CHECK_VERSION(2, 37, 2)
filename = g_test_get_filename (G_TEST_DIST, "boundaries.utf8", NULL);
+#else
+ filename = SRCDIR "/boundaries.utf8";
+#endif
+
g_print ("sample file: %s\n", filename);
if (!g_file_get_contents (filename, &text, NULL, NULL))