tests: Don't mock calls_contacts_provider_new()
Having set which folks backends to use the real function can be used without causing any warnings leading to the build to fail.
This commit is contained in:
@@ -23,16 +23,12 @@ test_link_args = [
|
||||
'-fPIC',
|
||||
]
|
||||
|
||||
mock_link_args = [ test_link_args,
|
||||
'-Wl,--wrap=calls_contacts_provider_new',
|
||||
]
|
||||
|
||||
|
||||
test_sources = [ 'test-manager.c' ]
|
||||
|
||||
t = executable('manager', test_sources,
|
||||
c_args : test_cflags,
|
||||
link_args: mock_link_args,
|
||||
link_args: test_link_args,
|
||||
pie: true,
|
||||
link_with : [calls_vala, libcalls],
|
||||
dependencies: calls_deps,
|
||||
@@ -73,7 +69,7 @@ test('util', t, env: test_env)
|
||||
test_sources = [ 'test-ui-call.c', 'mock-call.c', 'mock-call.h' ]
|
||||
t = executable('ui-call', test_sources,
|
||||
c_args : test_cflags,
|
||||
link_args : mock_link_args,
|
||||
link_args : test_link_args,
|
||||
pie: true,
|
||||
link_with : [calls_vala, libcalls],
|
||||
dependencies : calls_deps,
|
||||
@@ -90,7 +86,7 @@ test_sources = [
|
||||
|
||||
t = executable('ringer', test_sources,
|
||||
c_args : test_cflags,
|
||||
link_args: mock_link_args,
|
||||
link_args: test_link_args,
|
||||
pie: true,
|
||||
link_with : [calls_vala, libcalls, libfeedback],
|
||||
dependencies: calls_deps,
|
||||
|
||||
Reference in New Issue
Block a user