2011-04-27 10:05:43 +00:00
|
|
|
********* Start testing of tst_Cmptest *********
|
2015-06-08 10:21:30 +00:00
|
|
|
Config: Using QtTest library
|
2011-04-27 10:05:43 +00:00
|
|
|
PASS : tst_Cmptest::initTestCase()
|
2015-06-08 10:21:30 +00:00
|
|
|
FAIL! : tst_Cmptest::compare_unregistered_enums() Compared values are not the same
|
2016-07-19 17:51:41 +00:00
|
|
|
Loc: [tst_cmptest.cpp(160)]
|
2015-06-08 10:21:30 +00:00
|
|
|
FAIL! : tst_Cmptest::compare_registered_enums() Compared values are not the same
|
2015-12-02 01:44:34 +00:00
|
|
|
Actual (Qt::Monday): Monday
|
|
|
|
Expected (Qt::Sunday): Sunday
|
2016-07-19 17:51:41 +00:00
|
|
|
Loc: [tst_cmptest.cpp(167)]
|
2015-11-01 15:41:25 +00:00
|
|
|
FAIL! : tst_Cmptest::compare_class_enums() Compared values are not the same
|
|
|
|
Actual (MyClassEnum::MyClassEnumValue1): MyClassEnumValue1
|
|
|
|
Expected (MyClassEnum::MyClassEnumValue2): MyClassEnumValue2
|
2016-07-19 17:51:41 +00:00
|
|
|
Loc: [tst_cmptest.cpp(173)]
|
2011-04-27 10:05:43 +00:00
|
|
|
PASS : tst_Cmptest::compare_boolfuncs()
|
2016-02-22 19:29:32 +00:00
|
|
|
PASS : tst_Cmptest::compare_to_nullptr()
|
2011-04-27 10:05:43 +00:00
|
|
|
PASS : tst_Cmptest::compare_pointerfuncs()
|
|
|
|
FAIL! : tst_Cmptest::compare_tostring(int, string) Compared values are not the same
|
2013-07-01 22:58:40 +00:00
|
|
|
Actual (actual) : QVariant(int,123)
|
2011-04-27 10:05:43 +00:00
|
|
|
Expected (expected): QVariant(QString,hi)
|
2016-07-19 17:51:41 +00:00
|
|
|
Loc: [tst_cmptest.cpp(262)]
|
testlib: Count passes, fails and skips consistently.
For data-driven tests, testlib previously counted one fail or skip for
each data row that failed or skipped, while it counted only one pass
for a test function where all rows passed and counted no passes for a
test function where some rows passed and some rows failed. A similar
problem also existed for benchmark tests, which could run multiple
iterations of the same test, with each fail and skip being counted but
only a single pass being counted for the entire series of iterations.
This commit makes testlib count one pass, fail or skip for each data
row. Test functions that are not data-driven count one result for the
test function, as before. Benchmark tests count one pass, fail or skip
per iteration.
A side-effect of this change is that the test output in plain text, xml
and light xml formats now shows a result for every data row and
benchmark iteration executed, allowing post-processors to correctly
calculate the total number of tests executed. Previously, individual
rows were not shown in the test output if they passed, making such
calculations impossible.
The only change to the xunitxml output format is to correct a bug where
no test result was recorded for a test function if the last data row
was skipped and all other rows passed -- in which case the overall
result should be a pass. Note that there is also a pre-existing bug
in the xunit logger, where no result is reported if all rows are
skipped; that bug is unaffected by this commit.
Task-number: QTBUG-21848
Task-number: QTBUG-22124
Change-Id: I7e17177e10d6e89e55b9684c159bd506f21d002b
Reviewed-by: Ed Baak <ed.baak@nokia.com>
2012-02-02 07:08:44 +00:00
|
|
|
PASS : tst_Cmptest::compare_tostring(both invalid)
|
2011-04-27 10:05:43 +00:00
|
|
|
FAIL! : tst_Cmptest::compare_tostring(null hash, invalid) Compared values are not the same
|
2013-07-01 22:58:40 +00:00
|
|
|
Actual (actual) : QVariant(QVariantHash)
|
2011-04-27 10:05:43 +00:00
|
|
|
Expected (expected): QVariant()
|
2016-07-19 17:51:41 +00:00
|
|
|
Loc: [tst_cmptest.cpp(262)]
|
2011-04-27 10:05:43 +00:00
|
|
|
FAIL! : tst_Cmptest::compare_tostring(string, null user type) Compared values are not the same
|
2013-07-01 22:58:40 +00:00
|
|
|
Actual (actual) : QVariant(QString,A simple string)
|
2011-04-27 10:05:43 +00:00
|
|
|
Expected (expected): QVariant(PhonyClass)
|
2016-07-19 17:51:41 +00:00
|
|
|
Loc: [tst_cmptest.cpp(262)]
|
2011-04-27 10:05:43 +00:00
|
|
|
FAIL! : tst_Cmptest::compare_tostring(both non-null user type) Compared values are not the same
|
2013-07-01 22:58:40 +00:00
|
|
|
Actual (actual) : QVariant(PhonyClass,<value not representable as string>)
|
2011-04-27 10:05:43 +00:00
|
|
|
Expected (expected): QVariant(PhonyClass,<value not representable as string>)
|
2016-07-19 17:51:41 +00:00
|
|
|
Loc: [tst_cmptest.cpp(262)]
|
testlib: Count passes, fails and skips consistently.
For data-driven tests, testlib previously counted one fail or skip for
each data row that failed or skipped, while it counted only one pass
for a test function where all rows passed and counted no passes for a
test function where some rows passed and some rows failed. A similar
problem also existed for benchmark tests, which could run multiple
iterations of the same test, with each fail and skip being counted but
only a single pass being counted for the entire series of iterations.
This commit makes testlib count one pass, fail or skip for each data
row. Test functions that are not data-driven count one result for the
test function, as before. Benchmark tests count one pass, fail or skip
per iteration.
A side-effect of this change is that the test output in plain text, xml
and light xml formats now shows a result for every data row and
benchmark iteration executed, allowing post-processors to correctly
calculate the total number of tests executed. Previously, individual
rows were not shown in the test output if they passed, making such
calculations impossible.
The only change to the xunitxml output format is to correct a bug where
no test result was recorded for a test function if the last data row
was skipped and all other rows passed -- in which case the overall
result should be a pass. Note that there is also a pre-existing bug
in the xunit logger, where no result is reported if all rows are
skipped; that bug is unaffected by this commit.
Task-number: QTBUG-21848
Task-number: QTBUG-22124
Change-Id: I7e17177e10d6e89e55b9684c159bd506f21d002b
Reviewed-by: Ed Baak <ed.baak@nokia.com>
2012-02-02 07:08:44 +00:00
|
|
|
PASS : tst_Cmptest::compareQStringLists(empty lists)
|
|
|
|
PASS : tst_Cmptest::compareQStringLists(equal lists)
|
2013-01-19 10:52:03 +00:00
|
|
|
FAIL! : tst_Cmptest::compareQStringLists(last item different) Compared lists differ at index 2.
|
2014-01-21 00:03:30 +00:00
|
|
|
Actual (opA): "string3"
|
|
|
|
Expected (opB): "DIFFERS"
|
2016-07-19 17:51:41 +00:00
|
|
|
Loc: [tst_cmptest.cpp(356)]
|
2013-01-19 10:52:03 +00:00
|
|
|
FAIL! : tst_Cmptest::compareQStringLists(second-last item different) Compared lists differ at index 2.
|
2014-01-21 00:03:30 +00:00
|
|
|
Actual (opA): "string3"
|
|
|
|
Expected (opB): "DIFFERS"
|
2016-07-19 17:51:41 +00:00
|
|
|
Loc: [tst_cmptest.cpp(356)]
|
2013-01-19 10:52:03 +00:00
|
|
|
FAIL! : tst_Cmptest::compareQStringLists(prefix) Compared lists have different sizes.
|
2014-01-21 00:03:30 +00:00
|
|
|
Actual (opA) size: 2
|
|
|
|
Expected (opB) size: 1
|
2016-07-19 17:51:41 +00:00
|
|
|
Loc: [tst_cmptest.cpp(356)]
|
2013-01-19 10:52:03 +00:00
|
|
|
FAIL! : tst_Cmptest::compareQStringLists(short list second) Compared lists have different sizes.
|
2014-01-21 00:03:30 +00:00
|
|
|
Actual (opA) size: 12
|
|
|
|
Expected (opB) size: 1
|
2016-07-19 17:51:41 +00:00
|
|
|
Loc: [tst_cmptest.cpp(356)]
|
2013-01-19 10:52:03 +00:00
|
|
|
FAIL! : tst_Cmptest::compareQStringLists(short list first) Compared lists have different sizes.
|
2014-01-21 00:03:30 +00:00
|
|
|
Actual (opA) size: 1
|
|
|
|
Expected (opB) size: 12
|
2016-07-19 17:51:41 +00:00
|
|
|
Loc: [tst_cmptest.cpp(356)]
|
2013-01-19 10:52:03 +00:00
|
|
|
FAIL! : tst_Cmptest::compareQListInt() Compared lists differ at index 2.
|
2014-01-21 00:03:30 +00:00
|
|
|
Actual (int1): 3
|
|
|
|
Expected (int2): 4
|
2016-07-19 17:51:41 +00:00
|
|
|
Loc: [tst_cmptest.cpp(363)]
|
2013-01-19 10:52:03 +00:00
|
|
|
FAIL! : tst_Cmptest::compareQListDouble() Compared lists differ at index 0.
|
2014-01-21 00:03:30 +00:00
|
|
|
Actual (double1): 1.5
|
|
|
|
Expected (double2): 1
|
2016-07-19 17:51:41 +00:00
|
|
|
Loc: [tst_cmptest.cpp(370)]
|
2016-03-17 09:01:55 +00:00
|
|
|
FAIL! : tst_Cmptest::compareQColor() Compared values are not the same
|
|
|
|
Actual (yellow): #ffff00
|
|
|
|
Expected (green) : #00ff00
|
2016-07-19 17:51:41 +00:00
|
|
|
Loc: [tst_cmptest.cpp(380)]
|
testlib: Count passes, fails and skips consistently.
For data-driven tests, testlib previously counted one fail or skip for
each data row that failed or skipped, while it counted only one pass
for a test function where all rows passed and counted no passes for a
test function where some rows passed and some rows failed. A similar
problem also existed for benchmark tests, which could run multiple
iterations of the same test, with each fail and skip being counted but
only a single pass being counted for the entire series of iterations.
This commit makes testlib count one pass, fail or skip for each data
row. Test functions that are not data-driven count one result for the
test function, as before. Benchmark tests count one pass, fail or skip
per iteration.
A side-effect of this change is that the test output in plain text, xml
and light xml formats now shows a result for every data row and
benchmark iteration executed, allowing post-processors to correctly
calculate the total number of tests executed. Previously, individual
rows were not shown in the test output if they passed, making such
calculations impossible.
The only change to the xunitxml output format is to correct a bug where
no test result was recorded for a test function if the last data row
was skipped and all other rows passed -- in which case the overall
result should be a pass. Note that there is also a pre-existing bug
in the xunit logger, where no result is reported if all rows are
skipped; that bug is unaffected by this commit.
Task-number: QTBUG-21848
Task-number: QTBUG-22124
Change-Id: I7e17177e10d6e89e55b9684c159bd506f21d002b
Reviewed-by: Ed Baak <ed.baak@nokia.com>
2012-02-02 07:08:44 +00:00
|
|
|
PASS : tst_Cmptest::compareQPixmaps(both null)
|
2011-12-19 10:33:07 +00:00
|
|
|
FAIL! : tst_Cmptest::compareQPixmaps(one null) Compared QPixmaps differ.
|
2012-03-08 01:30:10 +00:00
|
|
|
Actual (opA).isNull(): 1
|
2011-12-19 10:33:07 +00:00
|
|
|
Expected (opB).isNull(): 0
|
2016-07-19 17:51:41 +00:00
|
|
|
Loc: [tst_cmptest.cpp(405)]
|
2011-12-19 10:33:07 +00:00
|
|
|
FAIL! : tst_Cmptest::compareQPixmaps(other null) Compared QPixmaps differ.
|
2012-03-08 01:30:10 +00:00
|
|
|
Actual (opA).isNull(): 0
|
2011-12-19 10:33:07 +00:00
|
|
|
Expected (opB).isNull(): 1
|
2016-07-19 17:51:41 +00:00
|
|
|
Loc: [tst_cmptest.cpp(405)]
|
testlib: Count passes, fails and skips consistently.
For data-driven tests, testlib previously counted one fail or skip for
each data row that failed or skipped, while it counted only one pass
for a test function where all rows passed and counted no passes for a
test function where some rows passed and some rows failed. A similar
problem also existed for benchmark tests, which could run multiple
iterations of the same test, with each fail and skip being counted but
only a single pass being counted for the entire series of iterations.
This commit makes testlib count one pass, fail or skip for each data
row. Test functions that are not data-driven count one result for the
test function, as before. Benchmark tests count one pass, fail or skip
per iteration.
A side-effect of this change is that the test output in plain text, xml
and light xml formats now shows a result for every data row and
benchmark iteration executed, allowing post-processors to correctly
calculate the total number of tests executed. Previously, individual
rows were not shown in the test output if they passed, making such
calculations impossible.
The only change to the xunitxml output format is to correct a bug where
no test result was recorded for a test function if the last data row
was skipped and all other rows passed -- in which case the overall
result should be a pass. Note that there is also a pre-existing bug
in the xunit logger, where no result is reported if all rows are
skipped; that bug is unaffected by this commit.
Task-number: QTBUG-21848
Task-number: QTBUG-22124
Change-Id: I7e17177e10d6e89e55b9684c159bd506f21d002b
Reviewed-by: Ed Baak <ed.baak@nokia.com>
2012-02-02 07:08:44 +00:00
|
|
|
PASS : tst_Cmptest::compareQPixmaps(equal)
|
2011-12-19 10:33:07 +00:00
|
|
|
FAIL! : tst_Cmptest::compareQPixmaps(different size) Compared QPixmaps differ in size.
|
2012-03-08 01:30:10 +00:00
|
|
|
Actual (opA): 11x20
|
2011-12-19 10:33:07 +00:00
|
|
|
Expected (opB): 20x20
|
2016-07-19 17:51:41 +00:00
|
|
|
Loc: [tst_cmptest.cpp(405)]
|
2011-12-19 10:33:07 +00:00
|
|
|
FAIL! : tst_Cmptest::compareQPixmaps(different pixels) Compared values are not the same
|
2016-07-19 17:51:41 +00:00
|
|
|
Loc: [tst_cmptest.cpp(405)]
|
testlib: Count passes, fails and skips consistently.
For data-driven tests, testlib previously counted one fail or skip for
each data row that failed or skipped, while it counted only one pass
for a test function where all rows passed and counted no passes for a
test function where some rows passed and some rows failed. A similar
problem also existed for benchmark tests, which could run multiple
iterations of the same test, with each fail and skip being counted but
only a single pass being counted for the entire series of iterations.
This commit makes testlib count one pass, fail or skip for each data
row. Test functions that are not data-driven count one result for the
test function, as before. Benchmark tests count one pass, fail or skip
per iteration.
A side-effect of this change is that the test output in plain text, xml
and light xml formats now shows a result for every data row and
benchmark iteration executed, allowing post-processors to correctly
calculate the total number of tests executed. Previously, individual
rows were not shown in the test output if they passed, making such
calculations impossible.
The only change to the xunitxml output format is to correct a bug where
no test result was recorded for a test function if the last data row
was skipped and all other rows passed -- in which case the overall
result should be a pass. Note that there is also a pre-existing bug
in the xunit logger, where no result is reported if all rows are
skipped; that bug is unaffected by this commit.
Task-number: QTBUG-21848
Task-number: QTBUG-22124
Change-Id: I7e17177e10d6e89e55b9684c159bd506f21d002b
Reviewed-by: Ed Baak <ed.baak@nokia.com>
2012-02-02 07:08:44 +00:00
|
|
|
PASS : tst_Cmptest::compareQImages(both null)
|
2011-12-19 10:33:07 +00:00
|
|
|
FAIL! : tst_Cmptest::compareQImages(one null) Compared QImages differ.
|
2012-03-08 01:30:10 +00:00
|
|
|
Actual (opA).isNull(): 1
|
2011-12-19 10:33:07 +00:00
|
|
|
Expected (opB).isNull(): 0
|
2016-07-19 17:51:41 +00:00
|
|
|
Loc: [tst_cmptest.cpp(432)]
|
2011-12-19 10:33:07 +00:00
|
|
|
FAIL! : tst_Cmptest::compareQImages(other null) Compared QImages differ.
|
2012-03-08 01:30:10 +00:00
|
|
|
Actual (opA).isNull(): 0
|
2011-12-19 10:33:07 +00:00
|
|
|
Expected (opB).isNull(): 1
|
2016-07-19 17:51:41 +00:00
|
|
|
Loc: [tst_cmptest.cpp(432)]
|
testlib: Count passes, fails and skips consistently.
For data-driven tests, testlib previously counted one fail or skip for
each data row that failed or skipped, while it counted only one pass
for a test function where all rows passed and counted no passes for a
test function where some rows passed and some rows failed. A similar
problem also existed for benchmark tests, which could run multiple
iterations of the same test, with each fail and skip being counted but
only a single pass being counted for the entire series of iterations.
This commit makes testlib count one pass, fail or skip for each data
row. Test functions that are not data-driven count one result for the
test function, as before. Benchmark tests count one pass, fail or skip
per iteration.
A side-effect of this change is that the test output in plain text, xml
and light xml formats now shows a result for every data row and
benchmark iteration executed, allowing post-processors to correctly
calculate the total number of tests executed. Previously, individual
rows were not shown in the test output if they passed, making such
calculations impossible.
The only change to the xunitxml output format is to correct a bug where
no test result was recorded for a test function if the last data row
was skipped and all other rows passed -- in which case the overall
result should be a pass. Note that there is also a pre-existing bug
in the xunit logger, where no result is reported if all rows are
skipped; that bug is unaffected by this commit.
Task-number: QTBUG-21848
Task-number: QTBUG-22124
Change-Id: I7e17177e10d6e89e55b9684c159bd506f21d002b
Reviewed-by: Ed Baak <ed.baak@nokia.com>
2012-02-02 07:08:44 +00:00
|
|
|
PASS : tst_Cmptest::compareQImages(equal)
|
2011-12-19 10:33:07 +00:00
|
|
|
FAIL! : tst_Cmptest::compareQImages(different size) Compared QImages differ in size.
|
2012-03-08 01:30:10 +00:00
|
|
|
Actual (opA): 11x20
|
2011-12-19 10:33:07 +00:00
|
|
|
Expected (opB): 20x20
|
2016-07-19 17:51:41 +00:00
|
|
|
Loc: [tst_cmptest.cpp(432)]
|
2011-12-19 10:33:07 +00:00
|
|
|
FAIL! : tst_Cmptest::compareQImages(different format) Compared QImages differ in format.
|
2012-03-08 01:30:10 +00:00
|
|
|
Actual (opA): 6
|
2011-12-19 10:33:07 +00:00
|
|
|
Expected (opB): 3
|
2016-07-19 17:51:41 +00:00
|
|
|
Loc: [tst_cmptest.cpp(432)]
|
2011-12-19 10:33:07 +00:00
|
|
|
FAIL! : tst_Cmptest::compareQImages(different pixels) Compared values are not the same
|
2016-07-19 17:51:41 +00:00
|
|
|
Loc: [tst_cmptest.cpp(432)]
|
2016-07-05 07:41:15 +00:00
|
|
|
PASS : tst_Cmptest::compareQRegion(equal-empty)
|
|
|
|
FAIL! : tst_Cmptest::compareQRegion(1-empty) Compared values are not the same
|
|
|
|
Actual (rA): QRegion(200x50+10+10)
|
|
|
|
Expected (rB): QRegion(null)
|
2016-07-19 17:51:41 +00:00
|
|
|
Loc: [tst_cmptest.cpp(455)]
|
2016-07-05 07:41:15 +00:00
|
|
|
PASS : tst_Cmptest::compareQRegion(equal)
|
|
|
|
FAIL! : tst_Cmptest::compareQRegion(different lists) Compared values are not the same
|
|
|
|
Actual (rA): QRegion(200x50+10+10)
|
|
|
|
Expected (rB): QRegion(2 rectangles, 50x200+100+200, 200x50+10+10)
|
2016-07-19 17:51:41 +00:00
|
|
|
Loc: [tst_cmptest.cpp(455)]
|
2015-07-21 08:55:17 +00:00
|
|
|
FAIL! : tst_Cmptest::verify() 'opaqueFunc() < 2' returned FALSE. ()
|
2016-07-19 17:51:41 +00:00
|
|
|
Loc: [tst_cmptest.cpp(467)]
|
2016-03-17 09:01:55 +00:00
|
|
|
FAIL! : tst_Cmptest::verify2() 'opaqueFunc() < 2' returned FALSE. (42)
|
2016-07-19 17:51:41 +00:00
|
|
|
Loc: [tst_cmptest.cpp(473)]
|
2016-03-17 09:01:55 +00:00
|
|
|
FAIL! : tst_Cmptest::tryVerify() 'opaqueFunc() < 2' returned FALSE. ()
|
2016-07-19 17:51:41 +00:00
|
|
|
Loc: [tst_cmptest.cpp(479)]
|
2016-03-17 09:01:55 +00:00
|
|
|
FAIL! : tst_Cmptest::tryVerify2() 'opaqueFunc() < 2' returned FALSE. (42)
|
2016-07-19 17:51:41 +00:00
|
|
|
Loc: [tst_cmptest.cpp(485)]
|
2016-05-03 21:04:28 +00:00
|
|
|
PASS : tst_Cmptest::verifyExplicitOperatorBool()
|
2011-04-27 10:05:43 +00:00
|
|
|
PASS : tst_Cmptest::cleanupTestCase()
|
2016-07-19 17:51:41 +00:00
|
|
|
Totals: 15 passed, 30 failed, 0 skipped, 0 blacklisted, 244ms
|
2011-04-27 10:05:43 +00:00
|
|
|
********* Finished testing of tst_Cmptest *********
|