Mark tst_qsslcertificate::verify with QEXPECT_FAIL
authorRohan McGovern <rohan.mcgovern@nokia.com>
Wed, 27 Jul 2011 22:41:50 +0000 (08:41 +1000)
committerQt by Nokia <qt-info@nokia.com>
Wed, 27 Jul 2011 22:59:07 +0000 (00:59 +0200)
Test started to fail, complains about outdated SSL certificate.

Task-number: QTBUG-20582
Change-Id: I2622375d9bc7b446dbbc18f72403896c60a8dee1
Reviewed-on: http://codereview.qt.nokia.com/2307
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
tests/auto/qsslcertificate/tst_qsslcertificate.cpp

index 451465d..1b3d039 100644 (file)
@@ -920,6 +920,7 @@ void tst_QSslCertificate::verify()
     toVerify = QSslCertificate::fromPath(SRCDIR "verify-certs/test-ocsp-good-cert.pem");
 
     errors = QSslCertificate::verify(toVerify);
+    QEXPECT_FAIL("", "QTBUG-20582 fails since ~5am, 27th July 2011", Continue);
     QVERIFY(errors.count() == 0);
     errors.clear();
 
@@ -955,10 +956,12 @@ void tst_QSslCertificate::verify()
     toVerify << QSslCertificate::fromPath(SRCDIR "verify-certs/test-intermediate-is-ca-cert.pem").first();
     toVerify << QSslCertificate::fromPath(SRCDIR "verify-certs/test-intermediate-ca-cert.pem").first();
     errors = QSslCertificate::verify(toVerify);
+    QEXPECT_FAIL("", "QTBUG-20582 fails since ~5am, 27th July 2011", Continue);
     QVERIFY(errors.length() == 0);
 
     // Recheck the above with hostname validation
     errors = QSslCertificate::verify(toVerify, QLatin1String("example.com"));
+    QEXPECT_FAIL("", "QTBUG-20582 fails since ~5am, 27th July 2011", Continue);
     QVERIFY(errors.length() == 0);
 
     // Recheck the above with a bad hostname