Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-20582

tst_qsslcertificate::verify fails since ~5am, 27th July 2011

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.0.0
    • 5.0.0
    • Network: SSL
    • 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".

      Attachments

        For Gerrit Dashboard: QTBUG-20582
        # Subject Branch Project Status CR V

        Activity

          People

            phartman Peter Hartmann (closed Nokia identity) (Inactive)
            rmcgover Rohan McGovern (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes