You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Jiri Daněk (Jira)" <ji...@apache.org> on 2021/11/07 19:32:00 UTC
[jira] [Created] (PROTON-2461) c-proactor-test is sensitive to the
system language setting
Jiri Daněk created PROTON-2461:
----------------------------------
Summary: 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
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.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org