celix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Menno van der Graaf (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CELIX-329) framework "service_" tests are outdates, some small bugs in the sources
Date Fri, 18 Dec 2015 09:31:46 GMT

    [ https://issues.apache.org/jira/browse/CELIX-329?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15063751#comment-15063751
] 

Menno van der Graaf commented on CELIX-329:
-------------------------------------------

Hi Bjoern,
the error you get is a strange one, considering that the line before the fail, the return
status of "serviceRegistry_getServiceReference" is confirmed to be "CELIX_SUCCES"
you also do not see any expected mock-calls that are not happening, meaning the reference
was "created" (outputted by the mock), and on "CELIX_SUCCES" the reference is assigned to
the "serviceRegistry_getServiceReference" output.

the only thing i can imagine happening here, is that the mock is not actually outputting the
"created" reference, this is a known bug in the CPPUTEST mock support in version 3.6,
it has since been patched: https://github.com/cpputest/cpputest/pull/362
make sure at least use version 3.7

hope this works

> framework "service_" tests are outdates, some small bugs in the sources
> -----------------------------------------------------------------------
>
>                 Key: CELIX-329
>                 URL: https://issues.apache.org/jira/browse/CELIX-329
>             Project: Celix
>          Issue Type: Bug
>          Components: Framework
>            Reporter: Menno van der Graaf
>         Attachments: service_refactor_tests.patch
>
>
> The tests for the "service_reference", "service_registry", and "service_tracker" are
out of date (after the refactoring of the registry)
> there are also some small bugs in the "service_registry"



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message