From fff5c065bc622c564113d1a8bde349f86cd9eb0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Matysiak?= Date: Fri, 7 Jun 2024 15:14:11 +0200 Subject: [PATCH] Use /tmp in tst_qcompleter on VxWorks The test checks if paths in /etc and /home are properly completed. /etc and /home do not exist on VxWorks. Use /tmp instead. Pick-to: 6.7 Task-number: QTBUG-115777 Change-Id: I6203fabb003a9a81eb4cdb666a972f47a53f06d6 Reviewed-by: Thiago Macieira (cherry picked from commit 843f8fb043a0812ab01f0a378be1a821f2e1534d) Reviewed-by: Qt Cherry-pick Bot --- tests/auto/widgets/util/qcompleter/tst_qcompleter.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/auto/widgets/util/qcompleter/tst_qcompleter.cpp b/tests/auto/widgets/util/qcompleter/tst_qcompleter.cpp index b2e77bc935d..0623ab41673 100644 --- a/tests/auto/widgets/util/qcompleter/tst_qcompleter.cpp +++ b/tests/auto/widgets/util/qcompleter/tst_qcompleter.cpp @@ -613,6 +613,9 @@ void tst_QCompleter::fileSystemModel_data() const QString androidDir = androidHomePath(); const QString tag = QStringLiteral("%1/fil").arg(androidDir); QTest::newRow(tag.toUtf8().data()) << tag << "" << "files" << androidDir + "/files"; +#elif defined(Q_OS_VXWORKS) + QTest::newRow("()") << "" << "" << "/" << "/"; + QTest::newRow("(/tm)") << "/tm" << "" << "tmp" << "/tmp"; #else QTest::newRow("()") << "" << "" << "/" << "/"; #if !defined(Q_OS_AIX) && !defined(Q_OS_HPUX) && !defined(Q_OS_QNX)