This is an automated email from the ASF dual-hosted git repository.
pnoltes pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/celix.git
The following commit(s) were added to refs/heads/develop by this push:
new d398824 Fixes mock setup
d398824 is described below
commit d398824a039a2630126a3bc92e66adf94ce8721a
Author: Pepijn Noltes <[email protected]>
AuthorDate: Sun May 26 21:13:50 2019 +0200
Fixes mock setup
---
libs/framework/private/test/service_registry_test.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libs/framework/private/test/service_registry_test.cpp
b/libs/framework/private/test/service_registry_test.cpp
index a0ee6eb..f0a4573 100644
--- a/libs/framework/private/test/service_registry_test.cpp
+++ b/libs/framework/private/test/service_registry_test.cpp
@@ -874,6 +874,8 @@ TEST(service_registry, getService) {
mock()
.expectOneCall("serviceRegistration_retain")
.withParameter("registration", registration);
+ mock().expectOneCall("serviceRegistration_release")
+ .ignoreOtherParameters();
actual = (void*) 0x666;//generic non null pointer value
serviceRegistry_getService(registry, bundle, reference, &actual);