comparison ui/tests/certlistparsertest.cpp @ 204:825b42da1855

Avoid printing an error when an empty certificate ist constructed
author Andre Heinecke <andre.heinecke@intevation.de>
date Wed, 26 Mar 2014 13:32:47 +0100
parents 60c5df8e7980
children c05e126b0b9e
comparison
equal deleted inserted replaced
203:60c5df8e7980 204:825b42da1855
49 QVERIFY(instList.size() >= 1); 49 QVERIFY(instList.size() >= 1);
50 QVERIFY(remoList.size() >= 1); 50 QVERIFY(remoList.size() >= 1);
51 QVERIFY(instLines.size() == instList.size()); 51 QVERIFY(instLines.size() == instList.size());
52 QVERIFY(remoLines.size() == remoList.size()); 52 QVERIFY(remoLines.size() == remoList.size());
53 53
54 /* Check that a default certificate is invalid */
54 Certificate cert; 55 Certificate cert;
55 QVERIFY(!cert.isValid()); 56 QVERIFY(!cert.isValid());
56 57
57 certList->readList(fileName.toLocal8Bit().data()); 58 certList->readList(fileName.toLocal8Bit().data());
58 59
94 95
95 void CertListTest::testEmptyFile() 96 void CertListTest::testEmptyFile()
96 { 97 {
97 const char *fname = "empty_file"; 98 const char *fname = "empty_file";
98 CertificateList *certList = testWithFile(fname); 99 CertificateList *certList = testWithFile(fname);
99 printf("Status :%i\n ",certList->getStatus());
100 QCOMPARE (certList->getStatus(), SeekFailed); 100 QCOMPARE (certList->getStatus(), SeekFailed);
101 delete certList; 101 delete certList;
102 } 102 }
103 103
104 void CertListTest::testGarbage() 104 void CertListTest::testGarbage()

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