]> git.pld-linux.org Git - packages/akonadi.git/blob - 0007-Don-t-call-insert-from-Q_ASSERT-breaks-unit-tests-in.patch
boost rebuild
[packages/akonadi.git] / 0007-Don-t-call-insert-from-Q_ASSERT-breaks-unit-tests-in.patch
1 From c516ec5c28d603aea0df6165f66a3a5d0a0191c4 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Dan=20Vr=C3=A1til?= <dvratil@redhat.com>
3 Date: Fri, 19 Sep 2014 10:50:23 +0200
4 Subject: [PATCH 07/30] Don't call insert() from Q_ASSERT - breaks unit-tests
5  in Release mode
6
7 ---
8  server/tests/unittest/collectionreferencetest.cpp | 6 ++++--
9  1 file changed, 4 insertions(+), 2 deletions(-)
10
11 diff --git a/server/tests/unittest/collectionreferencetest.cpp b/server/tests/unittest/collectionreferencetest.cpp
12 index 1700c75..1b10c55 100644
13 --- a/server/tests/unittest/collectionreferencetest.cpp
14 +++ b/server/tests/unittest/collectionreferencetest.cpp
15 @@ -45,7 +45,8 @@ public:
16          Resource res;
17          res.setId(1);
18          res.setName(QLatin1String(name));
19 -        Q_ASSERT(res.insert());
20 +        const bool success = res.insert();
21 +        Q_ASSERT(success);
22          mResource = res;
23          return res;
24      }
25 @@ -57,7 +58,8 @@ public:
26          col.setName(QLatin1String(name));
27          col.setRemoteId(QLatin1String(name));
28          col.setResource(mResource);
29 -        Q_ASSERT(col.insert());
30 +        const bool success = col.insert();
31 +        Q_ASSERT(success);
32          return col;
33      }
34  
35 -- 
36 2.1.0
37
This page took 0.049998 seconds and 3 git commands to generate.