Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-2461

c-proactor-test is sensitive to the system language setting

    XMLWordPrintableJSON

Details

    • Test
    • Status: Open
    • Major
    • Resolution: Unresolved
    • proton-c-0.36.0
    • None
    • build
    • 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"));
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            jdanek Jiri Daněk
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: