mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-23 15:49:16 +02:00
tests: Don't assume that all platforms are 64-bit
On ILP32 platforms, 4 is a valid alignment for g_aligned_alloc(), so use 2 as our invalid alignment instead. Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
parent
66857db98e
commit
d04f3491af
@ -943,7 +943,7 @@ aligned_alloc_nmov (void)
|
|||||||
gpointer a;
|
gpointer a;
|
||||||
|
|
||||||
/* Test an alignment that’s not a multiple of sizeof(void*) */
|
/* Test an alignment that’s not a multiple of sizeof(void*) */
|
||||||
a = g_aligned_alloc (16, sizeof(char), 4);
|
a = g_aligned_alloc (16, sizeof(char), sizeof(void *) / 2);
|
||||||
g_assert_null (a);
|
g_assert_null (a);
|
||||||
exit (0);
|
exit (0);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user