From ffc50a1bbf040f707a308c60227087ed7725af50 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 15 Jan 2020 20:53:47 +0100 Subject: tests: make test work on 32 bits --- spa/tests/test-pod.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spa/tests/test-pod.c b/spa/tests/test-pod.c index e88f9336..f3e126ea 100644 --- a/spa/tests/test-pod.c +++ b/spa/tests/test-pod.c @@ -968,7 +968,8 @@ static void test_varargs2(void) break; case 11: spa_assert(prop->key == 12); - spa_assert(SPA_POD_PROP_SIZE(prop) == 32); + spa_assert(SPA_POD_PROP_SIZE(prop) == (sizeof(struct spa_pod_prop) + + sizeof(struct spa_pod_pointer_body))); spa_assert(spa_pod_get_pointer(&prop->value, &val.ptype, &val.p) == 0); spa_assert(val.ptype == SPA_TYPE_Object); spa_assert(val.p == &b); -- cgit v1.2.3