Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-2490

TKTestListener's need to use Atomic counters.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Later
    • 0.5
    • JIRA Cleanup
    • Java Tests
    • None

    Description

      Currently the TKTestListener's use int to record results. In a multi-threaded test this is not safe. They should be updated to Atomic values. So that Error+Failed+Pass === Total. Currently discrepancies are occurring.

      if ("Error".equals(r.testState))

      { numError++; }

      else if ("Failure".equals(r.testState))

      { numFailed++; }

      else if ("Pass".equals(r.testState))

      { numPassed++; }

      totalTests++;

      Attachments

        Activity

          People

            Unassigned Unassigned
            ritchiem Martin Ritchie
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: