mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 07:26:15 +01:00
Fix non-srcdir builds
This commit is contained in:
parent
5f90baafb5
commit
67b8c7ea8a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user