[
https://issues.apache.org/jira/browse/PROTON-2461?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17627215#comment-17627215
]
Robbie Gemmell commented on PROTON-2461:
----------------------------------------
Above commit referenced this Jira in error, was meant for PROTON-2641
> c-proactor-test is sensitive to the system language setting
> -----------------------------------------------------------
>
> Key: PROTON-2461
> URL: https://issues.apache.org/jira/browse/PROTON-2461
> Project: Qpid Proton
> Issue Type: Test
> Components: build
> Affects Versions: proton-c-0.36.0
> Reporter: Jiri Daněk
> Priority: Major
>
> The test checks for the string "refused" in the error message. That part of
> the string is produced by the operating system, and it takes into account
> locales. In the failure below, the message is printed in Czech (saying
> "odmitl" instead of "refused").
> The test environment should somehow set English locales, or docs should note
> that it is necessary and how to do the action manually.
> {noformat}
> 3:
> -------------------------------------------------------------------------------
> 3: proactor_errors
> 3:
> -------------------------------------------------------------------------------
> 3: C:\Users\Vitorio\CLionProjects\qpid-proton\c\tests\proactor_test.cpp(305)
> 3:
> ...............................................................................
> 3:
> 3: C:\Users\Vitorio\CLionProjects\qpid-proton\c\tests\proactor_test.cpp(348):
> FAILED:
> 3: CHECK_THAT( *h.last_condition, cond_matches("proton:io", "refused") )
> 3: with expansion:
> 3: pn_condition{"proton:io", "Vzd�len� po��ta� odm�tl s�ov� p�ipojen�. -
> 3: connect to :58231"} matches "proton:io", "refused"
> 3:
> 3:
> ===============================================================================
> 3: test cases: 15 | 14 passed | 1 failed
> 3: assertions: 252 | 251 passed | 1 failed
> 3:
> Failed
> {noformat}
> The test is
> {code}
> /* Connect with no listener */
> p.connect(laddr);
> REQUIRE_RUN(p, PN_TRANSPORT_ERROR);
> CHECK_THAT(*h.last_condition, cond_matches("proton:io", "refused"));
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]