Mercurial > trustbridge
changeset 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 | f1ebab8639dc |
children | 37580703a870 |
files | ui/tests/certlistparsertest.cpp |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
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; }