You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Kim van der Riet (Jira)" <ji...@apache.org> on 2019/10/17 13:59:00 UTC

[jira] [Resolved] (PROTON-2120) [Proton-c] Threaderciser test does not link

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

Kim van der Riet resolved PROTON-2120.
--------------------------------------
    Resolution: Fixed

In the c/test/CMakeLists.txt file:

Using the add_c_test() macro to add the threadersicer test is causing the link issue. This test defines its own main() function, whereas other tests are part of a test framework in which the framework provides the main() function.

By explicitly adding the test without the test framework library bits rather than using the macro solves the issue and the test runs and passes.

> [Proton-c] Threaderciser test does not link
> -------------------------------------------
>
>                 Key: PROTON-2120
>                 URL: https://issues.apache.org/jira/browse/PROTON-2120
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: proton-c
>            Reporter: Kim van der Riet
>            Priority: Major
>
> Proton C has a "threaderciser" test which is by default is not enabled. However, if it is enabled before compile through the following cmake option:
> {{-DTHREADERCISER="ON"}}
> then the compile fails with a link error:
> {{multiple definitions of 'main'}}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org