You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@celix.apache.org by "Menno van der Graaf (JIRA)" <ji...@apache.org> on 2016/01/11 10:22:39 UTC

[jira] [Closed] (CELIX-339) celix_log_mock doesnt show logs to the user

     [ https://issues.apache.org/jira/browse/CELIX-339?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Menno van der Graaf closed CELIX-339.
-------------------------------------
    Resolution: Implemented

> celix_log_mock doesnt show logs to the user
> -------------------------------------------
>
>                 Key: CELIX-339
>                 URL: https://issues.apache.org/jira/browse/CELIX-339
>             Project: Celix
>          Issue Type: Improvement
>          Components: Framework
>            Reporter: Menno van der Graaf
>            Priority: Minor
>         Attachments: log_mock_print.patch
>
>
> mocking out the framework logger helps tests to detect when an exception is noted by the code under test. The current implementation only registers the "actual call" with the mock framework though, it does not output anything to the user (tester/developer). This can make debugging of the failing tests somewhat difficult, since the mocking framework never registers WHEN a call to the logger was made.
> attached will be a file that fixes "celix_log_mock.c", so that both the "actual call" is registered, and the error string is written to STDOUT.



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