2 Copyright (C) 2009 Constantin Berzan <exit3219@gmail.com>
4 Based on Akonadi code by:
5 Copyright (C) 2009 Volker Krause <vkrause@kde.org>
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Library General Public
9 License version 2 as published by the Free Software Foundation.
11 This library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Library General Public License for more details.
16 You should have received a copy of the GNU Library General Public License
17 along with this library; see the file COPYING.LIB. If not, write to
18 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 Boston, MA 02110-1301, USA.
22 #ifndef QTEST_LIBKDEPIM_H
23 #define QTEST_LIBKDEPIM_H
26 * Runs a KJob synchronously and aborts if the job failed.
27 * Similar to QVERIFY( job->exec() ) but includes the job error message
28 * in the output in case of a failure.
30 #define VERIFYEXEC( job ) \
31 QVERIFY2( job->exec(), job->errorString().toUtf8().constData() )