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 <thiago.macieira@intel.com>
(cherry picked from commit c672f148dbf179f2e0ac94dfac7d329d50a3e4a3)
This commit is contained in:
Ville Voutilainen 2022-12-15 11:08:13 +02:00
parent 48c291f2b7
commit ae6a3d6470

View File

@ -154,6 +154,9 @@ private:
void tst_QProcess::initTestCase() 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())); QVERIFY2(m_temporaryDir.isValid(), qPrintable(m_temporaryDir.errorString()));
// chdir to our testdata path and execute helper apps relative to that. // chdir to our testdata path and execute helper apps relative to that.
QString testdata_dir = QFileInfo(QFINDTESTDATA("testProcessNormal")).absolutePath(); QString testdata_dir = QFileInfo(QFINDTESTDATA("testProcessNormal")).absolutePath();