VirtualBox

Changeset 46333 in vbox


Ignore:
Timestamp:
May 30, 2013 5:27:55 PM (12 years ago)
Author:
vboxsync
Message:

rtTestXmlStart: fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/test.cpp

    r46317 r46333  
    775775        rtTestXmlOutput(pTest, "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n");
    776776        pTest->eXmlState = RTTESTINT::kXmlPos_ElementEnd;
    777         if (!(pTest->fFlags & RTTEST_C_XML_DELAY_TOP_TEST))
    778         {
    779             pTest->fXmlTopTestDone = true;
    780             if (!pTest->fXmlOmitTopTest)
    781                 rtTestXmlElemStart(pTest, "Test", "name=%RMas", pszTest);
    782         }
     777        pTest->fXmlTopTestDone = !(pTest->fFlags & RTTEST_C_XML_DELAY_TOP_TEST) || pTest->fXmlOmitTopTest;
     778        if (pTest->fXmlTopTestDone && !pTest->fXmlOmitTopTest)
     779            rtTestXmlElemStart(pTest, "Test", "name=%RMas", pszTest);
    783780    }
    784781}
     
    939936         */
    940937        size_t i = pTest->cXmlElements;
    941         AssertReturnVoid(i > 0 || pTest->fXmlOmitTopTest);
     938        AssertReturnVoid(i > 0 || pTest->fXmlOmitTopTest || !pTest->fXmlTopTestDone);
    942939        while (i-- > 1)
    943940        {
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette