mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-28 10:06:53 +02:00
Fix non-srcdir builds
This commit is contained in:
parent
5f90baafb5
commit
67b8c7ea8a
@ -8,7 +8,7 @@ test_empty (void)
|
|||||||
GError *error;
|
GError *error;
|
||||||
|
|
||||||
error = NULL;
|
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_no_error (error);
|
||||||
|
|
||||||
g_assert (g_mapped_file_get_contents (file) == NULL);
|
g_assert (g_mapped_file_get_contents (file) == NULL);
|
||||||
@ -39,7 +39,7 @@ test_writable (void)
|
|||||||
const gchar *new = "abcdefghijklmnopqrstuvxyz";
|
const gchar *new = "abcdefghijklmnopqrstuvxyz";
|
||||||
|
|
||||||
error = NULL;
|
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);
|
g_assert_no_error (error);
|
||||||
|
|
||||||
contents = g_mapped_file_get_contents (file);
|
contents = g_mapped_file_get_contents (file);
|
||||||
@ -51,7 +51,7 @@ test_writable (void)
|
|||||||
g_mapped_file_free (file);
|
g_mapped_file_free (file);
|
||||||
|
|
||||||
error = NULL;
|
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);
|
g_assert_no_error (error);
|
||||||
|
|
||||||
contents = g_mapped_file_get_contents (file);
|
contents = g_mapped_file_get_contents (file);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user