Details
-
Test
-
Status: Open
-
Major
-
Resolution: Unresolved
-
proton-c-0.36.0
-
None
-
None
Description
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.
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
The test is
/* Connect with no listener */ p.connect(laddr); REQUIRE_RUN(p, PN_TRANSPORT_ERROR); CHECK_THAT(*h.last_condition, cond_matches("proton:io", "refused"));