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:
Alex Richardson 2022-12-14 23:55:20 +00:00
parent 34236af33c
commit 58f70cebb6

View File

@ -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 { \