summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2009-09-09 13:51:47 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2009-09-09 13:56:51 (GMT)
commite5bb1e69a0c3165f92edebf9152dfd41bdab712f (patch)
tree87a91b2b3e5020820846156abb18e99fd4f0b0c2
parent0d1677a6e42aee1d9700cc57f053da59879ba3fb (diff)
downloadQt-e5bb1e69a0c3165f92edebf9152dfd41bdab712f.zip
Qt-e5bb1e69a0c3165f92edebf9152dfd41bdab712f.tar.gz
Qt-e5bb1e69a0c3165f92edebf9152dfd41bdab712f.tar.bz2
Autotest: fix the test for NUL in SAN. It was missing "www".
Reviewed-by: Marius Bugge Monsen
-rw-r--r--tests/auto/qsslcertificate/tst_qsslcertificate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qsslcertificate/tst_qsslcertificate.cpp b/tests/auto/qsslcertificate/tst_qsslcertificate.cpp
index 2f0c3a4..f41803c 100644
--- a/tests/auto/qsslcertificate/tst_qsslcertificate.cpp
+++ b/tests/auto/qsslcertificate/tst_qsslcertificate.cpp
@@ -761,7 +761,7 @@ void tst_QSslCertificate::nulInSan()
QVERIFY(!dnssan.isEmpty());
QVERIFY(dnssan != "www.bank.com");
- static const char realSAN[] = "www.bank.com\0.badguy.com";
+ static const char realSAN[] = "www.bank.com\0www.badguy.com";
QCOMPARE(dnssan, QString::fromLatin1(realSAN, sizeof realSAN - 1));
}