mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
test: init the pod test buffer with a fixed value
Works around the valgrind complaints when we call spa_debug_mem() on the buffer with various sizes.
This commit is contained in:
parent
5ebfbccd16
commit
4f49e893c1
1 changed files with 2 additions and 0 deletions
|
|
@ -701,6 +701,8 @@ PWTEST(pod_empty)
|
||||||
struct spa_pod_frame f;
|
struct spa_pod_frame f;
|
||||||
uint32_t n_vals, ch;
|
uint32_t n_vals, ch;
|
||||||
|
|
||||||
|
memset(buffer, 0xab, sizeof(buffer));
|
||||||
|
|
||||||
/* create empty arrays */
|
/* create empty arrays */
|
||||||
spa_pod_builder_init(&b, buffer, sizeof(buffer));
|
spa_pod_builder_init(&b, buffer, sizeof(buffer));
|
||||||
spa_assert(spa_pod_builder_push_array(&b, &f) == 0);
|
spa_assert(spa_pod_builder_push_array(&b, &f) == 0);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue