tests: don't special case tests needing FOR_TESTING define
This was introduced in649da75and was in preparation for the sip testing code from030313dand21abfb4.
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user