File: qtest_messagecomposer.h

package info (click to toggle)
messagelib 4%3A24.12.3-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 83,448 kB
  • sloc: cpp: 106,765; xml: 375; sh: 25; makefile: 15
file content (17 lines) | stat: -rw-r--r-- 510 bytes parent folder | download | duplicates (2)
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 MessageComposer::JobBase 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())