File: qtest_messagecore.h

package info (click to toggle)
kf5-messagelib 4%3A22.12.3-2~deb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 88,232 kB
  • sloc: cpp: 104,707; xml: 375; sh: 25; makefile: 24
file content (17 lines) | stat: -rw-r--r-- 490 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
  SPDX-FileCopyrightText: 2009 Constantin Berzan <exit3219@gmail.com>

  Based on Akonadi code by:
  SPDX-FileCopyrightText: 2009 Volker Krause <vkrause@kde.org>

  SPDX-License-Identifier: LGPL-2.0-only
*/

#pragma once

/**
 * Runs a KJob synchronously and aborts if the job failed.
 * Similar to QVERIFY( job->exec() ) but includes the job error message
 * in the output in case of a failure.
 */
#define VERIFYEXEC(job) QVERIFY2(job->exec(), job->errorString().toUtf8().constData())