qt5base-lts/tests/auto/testlib/selftests/expected_globaldata.junitxml

110 lines
6.0 KiB
Plaintext
Raw Normal View History

<?xml version="1.0" encoding="UTF-8" ?>
<testsuite name="tst_globaldata" timestamp="@TEST_START_TIME@" tests="6" failures="0" errors="43" time="@TEST_DURATION@">
<properties>
<property name="QTestVersion" value="@INSERT_QT_VERSION_HERE@"/>
<property name="QtVersion" value="@INSERT_QT_VERSION_HERE@"/>
<property name="QtBuild" value=""/>
</properties>
<testcase name="initTestCase" result="pass" time="@TEST_DURATION@">
<!-- type="qdebug" message="initTestCase initTestCase (null)" -->
</testcase>
<testcase name="testGlobal" result="pass" time="@TEST_DURATION@">
<!-- type="qdebug" message="init testGlobal local=false" tag="global=false:local=false" -->
<!-- type="qdebug" message="global: false" tag="global=false:local=false" -->
<!-- type="qdebug" message="local: false" tag="global=false:local=false" -->
<!-- type="qdebug" message="cleanup testGlobal local=false" tag="global=false:local=false" -->
<!-- type="qdebug" message="init testGlobal local=true" tag="global=false:local=true" -->
<!-- type="qdebug" message="global: false" tag="global=false:local=true" -->
<!-- type="qdebug" message="local: true" tag="global=false:local=true" -->
<!-- type="qdebug" message="cleanup testGlobal local=true" tag="global=false:local=true" -->
<!-- type="qdebug" message="init testGlobal local=false" tag="global=true:local=false" -->
<!-- type="qdebug" message="global: true" tag="global=true:local=false" -->
<!-- type="qdebug" message="local: false" tag="global=true:local=false" -->
<!-- type="qdebug" message="cleanup testGlobal local=false" tag="global=true:local=false" -->
<!-- type="qdebug" message="init testGlobal local=true" tag="global=true:local=true" -->
<!-- type="qdebug" message="global: true" tag="global=true:local=true" -->
<!-- type="qdebug" message="local: true" tag="global=true:local=true" -->
<!-- type="qdebug" message="cleanup testGlobal local=true" tag="global=true:local=true" -->
</testcase>
<testcase name="skip" time="@TEST_DURATION@">
<!-- type="skip" message="skipping" tag="global=false" -->
</testcase>
<testcase name="skipLocal" time="@TEST_DURATION@">
<!-- type="qdebug" message="init skipLocal local=false" tag="global=false:local=false" -->
<!-- type="skip" message="skipping" tag="global=false:local=false" -->
<!-- type="qdebug" message="cleanup skipLocal local=false" tag="global=false:local=false" -->
<!-- type="qdebug" message="init skipLocal local=true" tag="global=false:local=true" -->
<!-- type="skip" message="skipping" tag="global=false:local=true" -->
<!-- type="qdebug" message="cleanup skipLocal local=true" tag="global=false:local=true" -->
<!-- type="qdebug" message="init skipLocal local=false" tag="global=true:local=false" -->
<!-- type="skip" message="skipping" tag="global=true:local=false" -->
<!-- type="qdebug" message="cleanup skipLocal local=false" tag="global=true:local=false" -->
<!-- type="qdebug" message="init skipLocal local=true" tag="global=true:local=true" -->
<!-- type="skip" message="skipping" tag="global=true:local=true" -->
<!-- type="qdebug" message="cleanup skipLocal local=true" tag="global=true:local=true" -->
</testcase>
<testcase name="skipSingle" result="pass" time="@TEST_DURATION@">
<!-- type="qdebug" message="init skipSingle local=false" tag="global=false:local=false" -->
<!-- type="qdebug" message="global: false local: false" tag="global=false:local=false" -->
<!-- type="qdebug" message="cleanup skipSingle local=false" tag="global=false:local=false" -->
<!-- type="qdebug" message="init skipSingle local=true" tag="global=false:local=true" -->
<!-- type="skip" message="Skipping" tag="global=false:local=true" -->
<!-- type="qdebug" message="cleanup skipSingle local=true" tag="global=false:local=true" -->
<!-- type="qdebug" message="init skipSingle local=false" tag="global=true:local=false" -->
<!-- type="skip" message="Skipping" tag="global=true:local=false" -->
<!-- type="qdebug" message="cleanup skipSingle local=false" tag="global=true:local=false" -->
<!-- type="qdebug" message="init skipSingle local=true" tag="global=true:local=true" -->
<!-- type="qdebug" message="global: true local: true" tag="global=true:local=true" -->
<!-- type="qdebug" message="cleanup skipSingle local=true" tag="global=true:local=true" -->
</testcase>
<testcase name="cleanupTestCase" result="pass" time="@TEST_DURATION@">
<!-- type="qdebug" message="cleanupTestCase cleanupTestCase (null)" -->
</testcase>
<system-out>
<![CDATA[initTestCase initTestCase (null)]]>
<![CDATA[init testGlobal local=false]]>
<![CDATA[global: false]]>
<![CDATA[local: false]]>
<![CDATA[cleanup testGlobal local=false]]>
<![CDATA[init testGlobal local=true]]>
<![CDATA[global: false]]>
<![CDATA[local: true]]>
<![CDATA[cleanup testGlobal local=true]]>
<![CDATA[init testGlobal local=false]]>
<![CDATA[global: true]]>
<![CDATA[local: false]]>
<![CDATA[cleanup testGlobal local=false]]>
<![CDATA[init testGlobal local=true]]>
<![CDATA[global: true]]>
<![CDATA[local: true]]>
<![CDATA[cleanup testGlobal local=true]]>
<![CDATA[skipping]]>
<![CDATA[init skipLocal local=false]]>
<![CDATA[skipping]]>
<![CDATA[cleanup skipLocal local=false]]>
<![CDATA[init skipLocal local=true]]>
<![CDATA[skipping]]>
<![CDATA[cleanup skipLocal local=true]]>
Fix the skip-check in TestMethods::invokeTest() TestMethods::invokeTest() has an outer loop on global data (albeit with a comment that said otherwise). On its first cycle, we run the test function's *_data() method, if it has one; there is an inner loop on the rows this created. If the *_data() QSKIP()s, we need to skip the whole test; otherwise, a QSKIP() in one sub-test should not lead to skipping the remaining sub-tests. Moved the check for *_data() QSKIP()ping to right after *_data() returns, inside the "first global cycle" block that runs it. Previously, this check was done before entering the loop on local data rows, but outside that "first global cycle" block: consequently, later global cycles would fall foul of this check (even though the *_data() hasn't been run in this cycle, much less QSKIP()ped in it) if the last sub-test of the previous global cycle had QSKIP()ped. When running a single test for one specific data row, if the test's *_data() QSKIP()ped, this misplaced check would also have lead to a misleading "Unknown testdata" warning. Changed testlib/selftests' tst_globaldata::skipSingle() to trigger the bug (by having its last local row of first global row skip, which caused the second global row to be omitted) to verify this is also fixed; and amended one of its comments to reflect what's now to be expected. Updated the test's expected output files. Task-number: QTBUG-61774 Change-Id: I99596b595c6d1184038f23383844c6ff51a0cd91 Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@qt.io>
2017-07-18 09:57:02 +00:00
<![CDATA[init skipLocal local=false]]>
<![CDATA[skipping]]>
<![CDATA[cleanup skipLocal local=false]]>
<![CDATA[init skipLocal local=true]]>
<![CDATA[skipping]]>
<![CDATA[cleanup skipLocal local=true]]>
<![CDATA[init skipSingle local=false]]>
<![CDATA[global: false local: false]]>
<![CDATA[cleanup skipSingle local=false]]>
<![CDATA[init skipSingle local=true]]>
Fix the skip-check in TestMethods::invokeTest() TestMethods::invokeTest() has an outer loop on global data (albeit with a comment that said otherwise). On its first cycle, we run the test function's *_data() method, if it has one; there is an inner loop on the rows this created. If the *_data() QSKIP()s, we need to skip the whole test; otherwise, a QSKIP() in one sub-test should not lead to skipping the remaining sub-tests. Moved the check for *_data() QSKIP()ping to right after *_data() returns, inside the "first global cycle" block that runs it. Previously, this check was done before entering the loop on local data rows, but outside that "first global cycle" block: consequently, later global cycles would fall foul of this check (even though the *_data() hasn't been run in this cycle, much less QSKIP()ped in it) if the last sub-test of the previous global cycle had QSKIP()ped. When running a single test for one specific data row, if the test's *_data() QSKIP()ped, this misplaced check would also have lead to a misleading "Unknown testdata" warning. Changed testlib/selftests' tst_globaldata::skipSingle() to trigger the bug (by having its last local row of first global row skip, which caused the second global row to be omitted) to verify this is also fixed; and amended one of its comments to reflect what's now to be expected. Updated the test's expected output files. Task-number: QTBUG-61774 Change-Id: I99596b595c6d1184038f23383844c6ff51a0cd91 Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@qt.io>
2017-07-18 09:57:02 +00:00
<![CDATA[Skipping]]>
<![CDATA[cleanup skipSingle local=true]]>
<![CDATA[init skipSingle local=false]]>
<![CDATA[Skipping]]>
<![CDATA[cleanup skipSingle local=false]]>
<![CDATA[init skipSingle local=true]]>
<![CDATA[global: true local: true]]>
<![CDATA[cleanup skipSingle local=true]]>
<![CDATA[cleanupTestCase cleanupTestCase (null)]]>
</system-out>
<system-err/>
</testsuite>