From e08af1baa3f4ddd927be16660dfca3ef801b30bc Mon Sep 17 00:00:00 2001 From: Julian Bouzas <julian.bouzas@collabora.com> Date: Tue, 21 Apr 2020 12:11:20 -0400 Subject: [PATCH] tests: fix redefined warnings when building spa-props test --- tests/wp/meson.build | 6 +++++- tests/wp/spa-props.c | 10 ++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/tests/wp/meson.build b/tests/wp/meson.build index c0f9f4ee..ef457597 100644 --- a/tests/wp/meson.build +++ b/tests/wp/meson.build @@ -51,7 +51,11 @@ test( test( 'test-spa-props', - executable('test-spa-props', 'spa-props.c', + executable('test-spa-props', + [ + 'spa-props.c', + '../../lib/wp/spa-props.c' + ], dependencies: common_deps, c_args: common_args), env: common_env, ) diff --git a/tests/wp/spa-props.c b/tests/wp/spa-props.c index a67cece7..0446eaf5 100644 --- a/tests/wp/spa-props.c +++ b/tests/wp/spa-props.c @@ -6,13 +6,11 @@ * SPDX-License-Identifier: MIT */ -/* private functions, they should be hidden in the shared library */ -#include "wp/spa-props.c" -#include "wp/spa-type.c" -#include "wp/iterator.c" -#include "wp/spa-pod.c" - #include <spa/pod/iter.h> +#include <spa/pod/vararg.h> +#include <spa/param/props.h> + +#include "../../lib/wp/private.h" #include <wp/wp.h> -- GitLab