Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-81905

macOS 10.14 binds to low port numbers: tests expected that to fail

    XMLWordPrintable

Details

    • 210fd52e0d5e77105c676c064e7c3a69a00e2122 (qt/qtbase/5.14) c58ee54a707717b142f6e90cf48302884feb0b12 (qt/qtbase/5.14)

    Description

      On macOS 10.14 (clang-x86_64) I've seen repeated failures of

      FAIL!  : tst_QTcpSocket::bind(WithoutProxy:[::]:1) '!socket->bind(addr, port)' returned FALSE. ()
         Loc: [../tst_qtcpsocket.cpp(619)]
      
      FAIL!  : tst_PlatformSocketEngine::bind() '!binder.bind(QHostAddress::AnyIPv4, 82)' returned FALSE. ()
         Loc: [tst_platformsocketengine.cpp(535)]
      

      These are both Unix-only tests of low port numbers, which are normally privileged, so I presume the tests expect bind() to fail based on the test process not having the needed privilege to bind to these ports.
      I've only seen this failure on dev, when testing a change before integration.
      It's possible macOS 10.14 is new in dev and/or the Coin config for it uses a more privileged account than usual to run tests.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-81905
          # Subject Branch Project Status CR V

          Activity

            People

              thiago Thiago Macieira
              Eddy Edward Welbourne
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes