changeset 477:48161978c84c

Add some more verifications
author Andre Heinecke <aheinecke@intevation.de>
date Thu, 24 Apr 2014 10:32:14 +0000 (2014-04-24)
parents e8d761c2d2d1
children 214bf504c54f
files ui/tests/nsstest.cpp
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
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);
 

http://wald.intevation.org/projects/trustbridge/