From ae6a3d64702939b67bb27c83a74cc954a6c30a95 Mon Sep 17 00:00:00 2001 From: Ville Voutilainen Date: Thu, 15 Dec 2022 11:08:13 +0200 Subject: [PATCH] Skip QProcess tests when run under ASan These tests exhibit weird crashes when run under ASan, but sometimes they fail sometimes they don't. Pending more insight, just skip this test under that configuration. Fixes: QTBUG-109329 Change-Id: I49d940de419f7166aab0da0b8c2b44297c4b6d74 Reviewed-by: Thiago Macieira (cherry picked from commit c672f148dbf179f2e0ac94dfac7d329d50a3e4a3) --- tests/auto/corelib/io/qprocess/tst_qprocess.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/auto/corelib/io/qprocess/tst_qprocess.cpp b/tests/auto/corelib/io/qprocess/tst_qprocess.cpp index 5b575ce54a4..0159c4a3856 100644 --- a/tests/auto/corelib/io/qprocess/tst_qprocess.cpp +++ b/tests/auto/corelib/io/qprocess/tst_qprocess.cpp @@ -154,6 +154,9 @@ private: void tst_QProcess::initTestCase() { +#if defined(QT_ASAN_ENABLED) + QSKIP("Skipping QProcess tests under ASAN as they are flaky (QTBUG-109329)"); +#endif QVERIFY2(m_temporaryDir.isValid(), qPrintable(m_temporaryDir.errorString())); // chdir to our testdata path and execute helper apps relative to that. QString testdata_dir = QFileInfo(QFINDTESTDATA("testProcessNormal")).absolutePath();