Merge branch 'wip/pwithnall/file-load-contents-i386' into 'main'

tests: Improve 4GB file loading test to work on i386

See merge request GNOME/glib!4117
This commit is contained in:
Philip Withnall 2024-06-18 19:53:38 +00:00
commit fd4b61d8fb

View File

@ -2928,7 +2928,12 @@ test_load_bytes_async (void)
g_main_loop_unref (data.main_loop);
}
#if GLIB_SIZEOF_SIZE_T > 4
static const gsize testfile_4gb_size = ((gsize) 1 << 32) + (1 << 16); /* 4GB + a bit */
#else
/* Have to make do with something smaller on 32-bit platforms */
static const gsize testfile_4gb_size = G_MAXSIZE;
#endif
/* @filename will be modified as per g_mkstemp() */
static gboolean