Mark tst_qsslcertificate::verify with QEXPECT_FAIL

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>
This commit is contained in:
Rohan McGovern 2011-07-28 08:41:50 +10:00 committed by Qt by Nokia
parent 4ed3ac722e
commit 1cd497a14e

View File

@ -920,6 +920,7 @@ void tst_QSslCertificate::verify()
toVerify = QSslCertificate::fromPath(SRCDIR "verify-certs/test-ocsp-good-cert.pem"); toVerify = QSslCertificate::fromPath(SRCDIR "verify-certs/test-ocsp-good-cert.pem");
errors = QSslCertificate::verify(toVerify); errors = QSslCertificate::verify(toVerify);
QEXPECT_FAIL("", "QTBUG-20582 fails since ~5am, 27th July 2011", Continue);
QVERIFY(errors.count() == 0); QVERIFY(errors.count() == 0);
errors.clear(); 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-is-ca-cert.pem").first();
toVerify << QSslCertificate::fromPath(SRCDIR "verify-certs/test-intermediate-ca-cert.pem").first(); toVerify << QSslCertificate::fromPath(SRCDIR "verify-certs/test-intermediate-ca-cert.pem").first();
errors = QSslCertificate::verify(toVerify); errors = QSslCertificate::verify(toVerify);
QEXPECT_FAIL("", "QTBUG-20582 fails since ~5am, 27th July 2011", Continue);
QVERIFY(errors.length() == 0); QVERIFY(errors.length() == 0);
// Recheck the above with hostname validation // Recheck the above with hostname validation
errors = QSslCertificate::verify(toVerify, QLatin1String("example.com")); errors = QSslCertificate::verify(toVerify, QLatin1String("example.com"));
QEXPECT_FAIL("", "QTBUG-20582 fails since ~5am, 27th July 2011", Continue);
QVERIFY(errors.length() == 0); QVERIFY(errors.length() == 0);
// Recheck the above with a bad hostname // Recheck the above with a bad hostname