[fpc-devel] last change to xmlreporter.pas (part of fpcUnit) not working

Graeme Geldenhuys graemeg.lists at gmail.com
Mon Oct 2 00:44:09 CEST 2006


Hi,

I got an update of FPC 2.1.1 today, and my fpcUnit test results are
not correct anymore. The XML test listener (xmlreporter.pas) is not
writing the Failures correctly.  It keeps creating new (duplicate)
list nodes for each Failure.  The Error nodes are working fine.

See a snippet of my output (tested both under the GUI Test Runner and
the Text Test Runner).

Notice that there are duplicate ListOfFailures nodes, when there
should only be one.  The errors are correct, because their is only one
ListOfErrors node created.

-------------------------------------------
....snip....
  <ListOfFailures>
    <Failure>
      <Message>TTestTIUtils.tiFloatToCurrency: Failed on 4 expected:
<$ 0.01> but was: <$ 0.00></Message>
      <ExceptionClass>EAssertionFailedError</ExceptionClass>
      <ExceptionMessage>Failed on 4 expected: <$ 0.01> but was:
<$ 0.00></ExceptionMessage>
    </Failure>
  </ListOfFailures>
  <ListOfFailures>
    <Failure>
      <Message>TTestTIUtils.tiFloatToCurrencyHide0: Failed on 4
expected: <$ 0.01> but was: <$ 0.00></Message>
      <ExceptionClass>EAssertionFailedError</ExceptionClass>
      <ExceptionMessage>Failed on 4 expected: <$ 0.01> but was:
<$ 0.00></ExceptionMessage>
    </Failure>
  </ListOfFailures>
  <ListOfErrors>
    <Error>
      <Message>TTestTIUtils.tiGetComputerName: Access violation</Message>
      <ExceptionClass>EAccessViolation</ExceptionClass>
      <ExceptionMessage>Access violation</ExceptionMessage>
      <SourceUnitName>./include/lclintf.inc</SourceUnitName>
      <LineNumber>213</LineNumber>
      <FailedMethodName>GETCONTROLCONSTRAINTS</FailedMethodName>
    </Error>
    <Error>
      <Message>TTestTIUtils.tiGetTempDir: Access violation</Message>
      <ExceptionClass>EAccessViolation</ExceptionClass>
      <ExceptionMessage>Access violation</ExceptionMessage>
      <SourceUnitName>./include/lclintf.inc</SourceUnitName>
      <LineNumber>213</LineNumber>
      <FailedMethodName>GETCONTROLCONSTRAINTS</FailedMethodName>
    </Error>
    <Error>
      <Message>TTestTIUtils.tiGetUserName: Access violation</Message>
      <ExceptionClass>EAccessViolation</ExceptionClass>
      <ExceptionMessage>Access violation</ExceptionMessage>
      <SourceUnitName>./include/lclintf.inc</SourceUnitName>
      <LineNumber>213</LineNumber>
      <FailedMethodName>GETCONTROLCONSTRAINTS</FailedMethodName>
    </Error>
....snip....
-------------------------------------------

Regards,
  - Graeme -


-- 
There's no place like 127.0.0.1



More information about the fpc-devel mailing list