From 6efc95b699a0b9066c34611f6441a13eabec1b84 Mon Sep 17 00:00:00 2001 From: Krzysztof Sommerfeld Date: Mon, 29 Jan 2024 15:54:40 +0100 Subject: [PATCH] Exclude test from compilation without qprocess Change-Id: Iea3a28b25bdb828b0eb2ae0381489aa207f348fd Reviewed-by: Thiago Macieira --- .../corelib/mimetypes/qmimedatabase/tst_qmimedatabase.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/auto/corelib/mimetypes/qmimedatabase/tst_qmimedatabase.cpp b/tests/auto/corelib/mimetypes/qmimedatabase/tst_qmimedatabase.cpp index 7e97c661c1..2ff5aea651 100644 --- a/tests/auto/corelib/mimetypes/qmimedatabase/tst_qmimedatabase.cpp +++ b/tests/auto/corelib/mimetypes/qmimedatabase/tst_qmimedatabase.cpp @@ -1186,6 +1186,9 @@ void tst_QMimeDatabase::installNewLocalMimeType_data() void tst_QMimeDatabase::installNewLocalMimeType() { +#if !QT_CONFIG(process) + QSKIP("This test requires QProcess support"); +#else QFETCH(bool, useLocalBinaryCache); qmime_secondsBetweenChecks = 0; @@ -1298,6 +1301,7 @@ void tst_QMimeDatabase::installNewLocalMimeType() QCOMPARE(db.mimeTypeForFile(QLatin1String("foo.ymu"), QMimeDatabase::MatchExtension).name(), QString::fromLatin1("application/octet-stream")); QVERIFY(!db.mimeTypeForName(QLatin1String("text/x-suse-ymp")).isValid()); +#endif } QTEST_GUILESS_MAIN(tst_QMimeDatabase)