Fix non-srcdir builds

This commit is contained in:
Matthias Clasen 2011-04-13 01:31:19 -04:00
parent 5f90baafb5
commit 67b8c7ea8a

View File

@ -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);