mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
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:
commit
fd4b61d8fb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user