mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2025-01-07 12:25:31 +00:00
tests: don't special case tests needing FOR_TESTING define
This was introduced in649da75
and was in preparation for the sip testing code from030313d
and21abfb4
.
This commit is contained in:
parent
a44c265903
commit
3fd07c4dee
1 changed files with 2 additions and 4 deletions
|
@ -13,13 +13,11 @@ test_env = [
|
||||||
|
|
||||||
test_cflags = [
|
test_cflags = [
|
||||||
'-fPIE',
|
'-fPIE',
|
||||||
|
'-DFOR_TESTING',
|
||||||
'-Wno-error=deprecated-declarations',
|
'-Wno-error=deprecated-declarations',
|
||||||
'-DPLUGIN_BUILDDIR="@0@"'.format(full_calls_plugin_builddir),
|
'-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 = [
|
test_link_args = [
|
||||||
'-fPIC',
|
'-fPIC',
|
||||||
]
|
]
|
||||||
|
@ -47,7 +45,7 @@ foreach test : tests
|
||||||
t = executable(name, test_sources,
|
t = executable(name, test_sources,
|
||||||
calls_sources,
|
calls_sources,
|
||||||
dummy_sources,
|
dummy_sources,
|
||||||
c_args : test_cflags_with_test_define,
|
c_args : test_cflags,
|
||||||
link_args: test_link_args,
|
link_args: test_link_args,
|
||||||
link_with : calls_vala,
|
link_with : calls_vala,
|
||||||
dependencies: calls_deps,
|
dependencies: calls_deps,
|
||||||
|
|
Loading…
Reference in a new issue