Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.0.0
-
None
-
Ubuntu 10.04, 32-bit x86
-
9158f5a979fa36a944c736d64cdac2c4b6621a76
Description
This autotest started to fail in CI, with no changes to the relevant code.
Reproduced on my (Linux) workstation with qtbase 4ed3ac722e17a10a17f75d7050b837edb09441fd:
- build qtbase (e.g. ./configure -opensource -confirm-license -prefix $PWD -silent -no-pch && make -j30)
- cd tests/auto/qsslcertificate
- ./tst_qsslcertificate verify
- Observe that the test fails
By experimenting with faketime I was able to narrow down the time at which the test started to fail.
$ faketime -f '@2011-07-27 05:00:00' ./tst_qsslcertificate verify ********* Start testing of tst_QSslCertificate ********* Config: Using QTest library 5.0.0, Qt 5.0.0 PASS : tst_QSslCertificate::initTestCase() PASS : tst_QSslCertificate::verify() PASS : tst_QSslCertificate::cleanupTestCase() Totals: 3 passed, 0 failed, 0 skipped ********* Finished testing of tst_QSslCertificate *********
$ faketime -f '@2011-07-27 06:00:00' ./tst_qsslcertificate verify ********* Start testing of tst_QSslCertificate ********* Config: Using QTest library 5.0.0, Qt 5.0.0 PASS : tst_QSslCertificate::initTestCase() FAIL! : tst_QSslCertificate::verify() 'errors.count() == 0' returned FALSE. () Loc: [tst_qsslcertificate.cpp(923)] PASS : tst_QSslCertificate::cleanupTestCase() Totals: 2 passed, 1 failed, 0 skipped ********* Finished testing of tst_QSslCertificate *********
I don't know how/if faketime handles timezones, so you might have to play with the above times a bit.
Note, if you take http://codereview.qt.nokia.com/2241 the failure message becomes more helpful, "The certificate has expired".