From 3fd07c4dee04ae6149dc4482eac61022a4adbcac Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Tue, 6 Apr 2021 12:07:14 +0200 Subject: [PATCH] tests: don't special case tests needing FOR_TESTING define This was introduced in 649da75 and was in preparation for the sip testing code from 030313d and 21abfb4. --- tests/meson.build | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/meson.build b/tests/meson.build index 009a1ee..5df220a 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -13,13 +13,11 @@ test_env = [ test_cflags = [ '-fPIE', + '-DFOR_TESTING', '-Wno-error=deprecated-declarations', '-DPLUGIN_BUILDDIR="@0@"'.format(full_calls_plugin_builddir), ] -test_cflags_with_test_define = test_cflags -test_cflags_with_test_define += [ '-DFOR_TESTING' ] - test_link_args = [ '-fPIC', ] @@ -47,7 +45,7 @@ foreach test : tests t = executable(name, test_sources, calls_sources, dummy_sources, - c_args : test_cflags_with_test_define, + c_args : test_cflags, link_args: test_link_args, link_with : calls_vala, dependencies: calls_deps,