Commit 7b70b10c authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix path

parent 1e1049a1
Pipeline #50254 passed with stage
in 12 minutes and 56 seconds
include(ECMAddTests)
find_package(Qt5Test ${QT_REQUIRED_VERSION} CONFIG REQUIRED)
add_definitions( -DKIDENTITYMANAGER_DATA_DIR="${CMAKE_CURRENT_SOURCE_DIR}/")
ecm_add_tests( identitytest.cpp signaturetest.cpp NAME_PREFIX "kpimidentity-" LINK_LIBRARIES KF5IdentityManagement
KF5::PimTextEdit Qt5::Test KF5::ConfigCore KF5::TextWidgets KF5::XmlGui KF5::CoreAddons)
......@@ -79,7 +79,8 @@ void SignatureTester::testSignatures()
if (!QStandardPaths::findExecutable(QStringLiteral("cat")).isEmpty()) {
Signature sig3;
sig3.setPath(QStringLiteral("cat ") + KShell::quoteArg(QStringLiteral(__FILE__)), true);
const QString tempFile = KShell::quoteArg(QLatin1String(KIDENTITYMANAGER_DATA_DIR) + QStringLiteral(__FILE__));
sig3.setPath(QStringLiteral("cat ") + KShell::quoteArg(tempFile), true);
QCOMPARE(sig3.rawText(), fileContent);
QVERIFY(!sig3.isInlinedHtml());
QVERIFY(sig3.text().isEmpty());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment