diff ui/tests/certlistparsertest.cpp @ 95:b0b1375dfd40

Add check for default ctor of Certificate. Fix return value of empty file
author Andre Heinecke <aheinecke@intevation.de>
date Fri, 21 Mar 2014 10:12:41 +0000
parents abc76b750ea8
children 0861069fd6d0
line wrap: on
line diff
--- a/ui/tests/certlistparsertest.cpp	Fri Mar 21 10:06:50 2014 +0000
+++ b/ui/tests/certlistparsertest.cpp	Fri Mar 21 10:12:41 2014 +0000
@@ -51,6 +51,9 @@
     QVERIFY(instLines.size() == instList.size());
     QVERIFY(remoLines.size() == remoList.size());
 
+    Certificate cert;
+    QVERIFY(!cert.isValid());
+
 
     delete certList;
 }
@@ -88,7 +91,7 @@
     const char *fname = "empty_file";
     CertificateList *certList = testWithFile(fname);
     printf("Status :%i\n ",certList->getStatus());
-    QCOMPARE (certList->getStatus(), UnknownError);
+    QCOMPARE (certList->getStatus(), SeekFailed);
     delete certList;
 }
 

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