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
|
2015-07-21 08:55:17 +00:00
|
|
|
Loc: [tst_cmptest.cpp(154)]
|
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
|
2015-07-21 08:55:17 +00:00
|
|
|
Loc: [tst_cmptest.cpp(160)]
|
2011-04-27 10:05:43 +00:00
|
|
|
PASS : tst_Cmptest::compare_boolfuncs()
|
|
|
|
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)
|
2015-07-21 08:55:17 +00:00
|
|
|
Loc: [tst_cmptest.cpp(231)]
|
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()
|
2015-07-21 08:55:17 +00:00
|
|
|
Loc: [tst_cmptest.cpp(231)]
|
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)
|
2015-07-21 08:55:17 +00:00
|
|
|
Loc: [tst_cmptest.cpp(231)]
|
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>)
|
2015-07-21 08:55:17 +00:00
|
|
|
Loc: [tst_cmptest.cpp(231)]
|
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"
|
2015-07-21 08:55:17 +00:00
|
|
|
Loc: [tst_cmptest.cpp(325)]
|
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"
|
2015-07-21 08:55:17 +00:00
|
|
|
Loc: [tst_cmptest.cpp(325)]
|
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
|
2015-07-21 08:55:17 +00:00
|
|
|
Loc: [tst_cmptest.cpp(325)]
|
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
|
2015-07-21 08:55:17 +00:00
|
|
|
Loc: [tst_cmptest.cpp(325)]
|
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
|
2015-07-21 08:55:17 +00:00
|
|
|
Loc: [tst_cmptest.cpp(325)]
|
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
|
2015-07-21 08:55:17 +00:00
|
|
|
Loc: [tst_cmptest.cpp(332)]
|
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
|
2015-07-21 08:55:17 +00:00
|
|
|
Loc: [tst_cmptest.cpp(339)]
|
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
|
2015-07-21 08:55:17 +00:00
|
|
|
Loc: [tst_cmptest.cpp(365)]
|
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
|
2015-07-21 08:55:17 +00:00
|
|
|
Loc: [tst_cmptest.cpp(365)]
|
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
|
2015-07-21 08:55:17 +00:00
|
|
|
Loc: [tst_cmptest.cpp(365)]
|
2011-12-19 10:33:07 +00:00
|
|
|
FAIL! : tst_Cmptest::compareQPixmaps(different pixels) Compared values are not the same
|
2015-07-21 08:55:17 +00:00
|
|
|
Loc: [tst_cmptest.cpp(365)]
|
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
|
2015-07-21 08:55:17 +00:00
|
|
|
Loc: [tst_cmptest.cpp(392)]
|
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
|
2015-07-21 08:55:17 +00:00
|
|
|
Loc: [tst_cmptest.cpp(392)]
|
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
|
2015-07-21 08:55:17 +00:00
|
|
|
Loc: [tst_cmptest.cpp(392)]
|
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
|
2015-07-21 08:55:17 +00:00
|
|
|
Loc: [tst_cmptest.cpp(392)]
|
2011-12-19 10:33:07 +00:00
|
|
|
FAIL! : tst_Cmptest::compareQImages(different pixels) Compared values are not the same
|
2015-07-21 08:55:17 +00:00
|
|
|
Loc: [tst_cmptest.cpp(392)]
|
|
|
|
FAIL! : tst_Cmptest::verify() 'opaqueFunc() < 2' returned FALSE. ()
|
|
|
|
Loc: [tst_cmptest.cpp(404)]
|
|
|
|
FAIL! : tst_Cmptest::verify2() 'opaqueFunc() < 2' returned FALSE. (42)
|
|
|
|
Loc: [tst_cmptest.cpp(410)]
|
|
|
|
FAIL! : tst_Cmptest::tryVerify() 'opaqueFunc() < 2' returned FALSE. ()
|
|
|
|
Loc: [tst_cmptest.cpp(416)]
|
|
|
|
FAIL! : tst_Cmptest::tryVerify2() 'opaqueFunc() < 2' returned FALSE. (42)
|
|
|
|
Loc: [tst_cmptest.cpp(422)]
|
2011-04-27 10:05:43 +00:00
|
|
|
PASS : tst_Cmptest::cleanupTestCase()
|
2015-07-21 08:55:17 +00:00
|
|
|
Totals: 11 passed, 26 failed, 0 skipped, 0 blacklisted
|
2011-04-27 10:05:43 +00:00
|
|
|
********* Finished testing of tst_Cmptest *********
|