Fix kmymoney test build failure on 32bit

(cherry picked from commit f4618e14b9)
Signed-off-by: Domen Kožar <domen@dev.si>
This commit is contained in:
exi 2016-09-12 13:42:44 +03:00 committed by Domen Kožar
parent 6ff44c571b
commit 18ba3297f0
2 changed files with 30 additions and 1 deletions

View file

@ -21,7 +21,10 @@ stdenv.mkDerivation rec {
KDEDIRS = libalkimia;
patches = [ ./qgpgme.patch ];
patches = [
./qgpgme.patch
./seqaccessmgrtest.patch
];
meta = {
homepage = http://kmymoney2.sourceforge.net/;

View file

@ -0,0 +1,26 @@
Fix tests for 32bit builds until we can bring these upstream
diff --git a/kmymoney/mymoney/storage/mymoneyseqaccessmgrtest.cpp b/kmymoney/mymoney/storage/mymoneyseqaccessmgrtest.cpp
index dcb4b4a..e803203 100644
--- a/kmymoney/mymoney/storage/mymoneyseqaccessmgrtest.cpp
+++ b/kmymoney/mymoney/storage/mymoneyseqaccessmgrtest.cpp
@@ -58,13 +58,13 @@ void MyMoneySeqAccessMgrTest::testEmptyConstructor()
QCOMPARE(m->m_nextPayeeID, 0ul);
QCOMPARE(m->m_nextScheduleID, 0ul);
QCOMPARE(m->m_nextReportID, 0ul);
- QCOMPARE(m->m_institutionList.count(), 0ul);
- QCOMPARE(m->m_accountList.count(), 5ul);
- QCOMPARE(m->m_transactionList.count(), 0ul);
- QCOMPARE(m->m_transactionKeys.count(), 0ul);
- QCOMPARE(m->m_payeeList.count(), 0ul);
- QCOMPARE(m->m_tagList.count(), 0ul);
- QCOMPARE(m->m_scheduleList.count(), 0ul);
+ QCOMPARE(m->m_institutionList.count(), (size_t)0);
+ QCOMPARE(m->m_accountList.count(), (size_t)5);
+ QCOMPARE(m->m_transactionList.count(), (size_t)0);
+ QCOMPARE(m->m_transactionKeys.count(), (size_t)0);
+ QCOMPARE(m->m_payeeList.count(), (size_t)0);
+ QCOMPARE(m->m_tagList.count(), (size_t)0);
+ QCOMPARE(m->m_scheduleList.count(), (size_t)0);
QCOMPARE(m->m_dirty, false);
QCOMPARE(m->m_creationDate, QDate::currentDate());