summaryrefslogtreecommitdiff
path: root/tests/testboundaries.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2001-04-17 22:39:30 +0000
committerOwen Taylor <otaylor@src.gnome.org>2001-04-17 22:39:30 +0000
commita1a5c040896150d7e41bf702a6bacecce6fc2461 (patch)
treece1c8fc7987cdf225d266a9f1c847a508966b6c7 /tests/testboundaries.c
parentd17adb44478e516b207b25afc1d6e87d5d274c96 (diff)
downloadpango-a1a5c040896150d7e41bf702a6bacecce6fc2461.tar.gz
Release 0.15PANGO_0_15
Tue Apr 17 15:44:53 2001 Owen Taylor <otaylor@redhat.com> * Release 0.15 * tests/testboundaries.c: Look for files in $srcdir. * Makefile.am (SUBDIRS): Add tests, remove fonts * tests/Makefile.am (EXTRA_DIST): added missing stuff * fonts/: Remove. Nothing in here is needed any more.
Diffstat (limited to 'tests/testboundaries.c')
-rw-r--r--tests/testboundaries.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/testboundaries.c b/tests/testboundaries.c
index 895231ae..a405bd04 100644
--- a/tests/testboundaries.c
+++ b/tests/testboundaries.c
@@ -341,8 +341,16 @@ main (int argc,
char **argv)
{
gchar *text;
+ gchar *srcdir;
+ gchar *filename;
- if (!g_file_get_contents ("boundaries.utf8", &text, NULL, NULL))
+ srcdir = getenv ("srcdir");
+ if (!srcdir)
+ srcdir = ".";
+
+ filename = g_strdup_printf ("%s/boundaries.utf8", srcdir);
+
+ if (!g_file_get_contents (filename, &text, NULL, NULL))
fail ("Couldn't open sample text file");
check_invariants (text);