Mercurial > trustbridge
diff ui/tests/nsstest.cpp @ 477:48161978c84c
Add some more verifications
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Thu, 24 Apr 2014 10:32:14 +0000 |
parents | 17e1c8f37d72 |
children | dcb014e7d32f |
line wrap: on
line diff
--- a/ui/tests/nsstest.cpp Thu Apr 24 10:31:43 2014 +0000 +++ b/ui/tests/nsstest.cpp Thu Apr 24 10:32:14 2014 +0000 @@ -170,10 +170,14 @@ QVERIFY(instList.size() > 2); strv_append (&to_remove, to_install[1], qstrlen(to_install[1])); + QList<QByteArray> beforeFF = get_nss_certs(&ffNSSDir); + QVERIFY(strv_length(to_remove) == 1); QVERIFY(write_stores_nss(NULL, to_remove) == 0); QList<QByteArray> installedCertsFF = get_nss_certs(&ffNSSDir); QList<QByteArray> installedCertsTB = get_nss_certs(&tbNSSDir); + QVERIFY(beforeFF.size() > 0); + QVERIFY(beforeFF.size() - 1 == installedCertsFF.size()); QVERIFY(installedCertsFF == installedCertsTB);