From 2f7d87555bc4c766b6c3fea389b95f08b7016d61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20=C5=81o=C5=9B?= Date: Thu, 14 Nov 2024 16:58:54 +0100 Subject: [PATCH] Expect fails in QApplication test functions for VxWorks "libraryPaths" and "libraryPaths_qt_plugin_path" test functions fail on VxWorks, due to missing path to "/usr/local/Qt-6.9.0/plugins" which test expects. The exact reason of this failure is to be found. We need to run tests on COIN for VxWorks as significant, and this test prevents it, to reduce growing number of regressions and allow iterative introduction of VxWorks as a supported platform. Add QEXPECT_FAIL in library-path-related test function of tst_QApplication for VxWorks. Task-number: QTBUG-115777 Task-number: QTBUG-130736 Change-Id: I08bb8b3f4a776303f61aebd931e5f3ddf3f1f39e Reviewed-by: Axel Spoerl --- tests/auto/widgets/kernel/qapplication/tst_qapplication.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/auto/widgets/kernel/qapplication/tst_qapplication.cpp b/tests/auto/widgets/kernel/qapplication/tst_qapplication.cpp index d848adaa90b..45bb9415d60 100644 --- a/tests/auto/widgets/kernel/qapplication/tst_qapplication.cpp +++ b/tests/auto/widgets/kernel/qapplication/tst_qapplication.cpp @@ -1010,6 +1010,9 @@ void tst_QApplication::libraryPaths() expected = QSet(expected.constBegin(), expected.constEnd()).values(); expected.sort(); +#if defined(Q_OS_VXWORKS) + QEXPECT_FAIL("", "QTBUG-130736: Actual paths on VxWorks differ from expected", Abort); +#endif QVERIFY2(isPathListIncluded(actual, expected), qPrintable("actual:\n - " + actual.join("\n - ") + "\nexpected:\n - " + expected.join("\n - "))); @@ -1117,6 +1120,9 @@ void tst_QApplication::libraryPaths_qt_plugin_path_2() << QDir(QCoreApplication::applicationDirPath()).canonicalPath() << QDir(QDir::fromNativeSeparators(QString::fromLatin1(validPath))).canonicalPath(); +#if defined(Q_OS_VXWORKS) + QEXPECT_FAIL("", "QTBUG-130736: Actual paths on VxWorks differ from expected", Abort); +#endif QVERIFY2(isPathListIncluded(QCoreApplication::libraryPaths(), expected), qPrintable("actual:\n - " + QCoreApplication::libraryPaths().join("\n - ") + "\nexpected:\n - " + expected.join("\n - ")));