Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-22022

Unittest DFUAccessTests can fail if 1st port it tries for temp server is in use

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.2.10
    • Component/s: unittests
    • Labels:
      None

      Description

      This unit test starts a temporary dafilesrv, by 1st establishing which MP port is not in use.
      However, the port # it finds isn't passed through to the other tests, which end up always using the 1st port in the range, which may be a completely different component.

      The bug is caused by the fact that the port discovered is set into a class member within the CppUnit::TestFixture test object. However, the CPPUNIT framework creates a separate object for each test, so the setting is lost.

        Attachments

          Activity

            People

            • Assignee:
              jakesmith Jake Smith
              Reporter:
              jakesmith Jake Smith
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: