diff options
author | Wim Taymans <wtaymans@redhat.com> | 2020-01-15 20:53:47 +0100 |
---|---|---|
committer | Wim Taymans <wtaymans@redhat.com> | 2020-01-15 20:53:47 +0100 |
commit | ffc50a1bbf040f707a308c60227087ed7725af50 (patch) | |
tree | 7f0d0afbc45d559e61abca6da7c122c324fbb318 | |
parent | 919656aba367afe01958380d13ec07b8e56944a3 (diff) |
tests: make test work on 32 bits
-rw-r--r-- | spa/tests/test-pod.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |