[glib] Fix non-srcdir builds
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Fix non-srcdir builds
- Date: Wed, 13 Apr 2011 12:45:30 +0000 (UTC)
commit 67b8c7ea8adeef5e2db5e2ed65a15db1e6c91f74
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Apr 13 01:31:19 2011 -0400
Fix non-srcdir builds
glib/tests/mappedfile.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/glib/tests/mappedfile.c b/glib/tests/mappedfile.c
index 8a0af9b..2678fd2 100644
--- a/glib/tests/mappedfile.c
+++ b/glib/tests/mappedfile.c
@@ -8,7 +8,7 @@ test_empty (void)
GError *error;
error = NULL;
- file = g_mapped_file_new ("empty", FALSE, &error);
+ file = g_mapped_file_new (SRCDIR "/empty", FALSE, &error);
g_assert_no_error (error);
g_assert (g_mapped_file_get_contents (file) == NULL);
@@ -39,7 +39,7 @@ test_writable (void)
const gchar *new = "abcdefghijklmnopqrstuvxyz";
error = NULL;
- file = g_mapped_file_new ("4096-random-bytes", TRUE, &error);
+ file = g_mapped_file_new (SRCDIR "/4096-random-bytes", TRUE, &error);
g_assert_no_error (error);
contents = g_mapped_file_get_contents (file);
@@ -51,7 +51,7 @@ test_writable (void)
g_mapped_file_free (file);
error = NULL;
- file = g_mapped_file_new ("4096-random-bytes", TRUE, &error);
+ file = g_mapped_file_new (SRCDIR "/4096-random-bytes", TRUE, &error);
g_assert_no_error (error);
contents = g_mapped_file_get_contents (file);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]