mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-11 11:56:16 +01:00
Fix test_aligned_mem for Morello
On Arm Morello sizeof(void*) is 16 bytes so we fail the check for `(alignment % sizeof (void *)) != 0))` in gmem.c.
This commit is contained in:
parent
34236af33c
commit
58f70cebb6
@ -1086,13 +1086,13 @@ test_aligned_mem (void)
|
|||||||
|
|
||||||
g_test_summary ("Aligned memory allocator");
|
g_test_summary ("Aligned memory allocator");
|
||||||
|
|
||||||
a = g_aligned_alloc (0, sizeof(int), 8);
|
a = g_aligned_alloc (0, sizeof (int), MAX (sizeof (void *), 8));
|
||||||
g_assert_null (a);
|
g_assert_null (a);
|
||||||
|
|
||||||
a = g_aligned_alloc0 (0, sizeof(int), 8);
|
a = g_aligned_alloc0 (0, sizeof (int), MAX (sizeof (void *), 8));
|
||||||
g_assert_null (a);
|
g_assert_null (a);
|
||||||
|
|
||||||
a = g_aligned_alloc (16, 0, 8);
|
a = g_aligned_alloc (16, 0, MAX (sizeof (void *), 8));
|
||||||
g_assert_null (a);
|
g_assert_null (a);
|
||||||
|
|
||||||
#define CHECK_SUBPROCESS_FAIL(name,msg) do { \
|
#define CHECK_SUBPROCESS_FAIL(name,msg) do { \
|
||||||
|
Loading…
Reference in New Issue
Block a user