update tst_QFile::supportsMoveToTrash for VxWorks 25.03

On VxWorks 25.03 AT_FDCWD is defined but the POSIX at* APIs needed for
trash support are still missing. Update tst_QFile::supportsMoveToTrash
to verify that QFile::supportsMoveToTrash() returns false on
Q_OS_VXWORKS, regardless of AT_FDCWD.

Fixes: QTBUG-136693
Change-Id: I33f418984887d87e42ecda494cd5b101c42d55e6
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Jacek Poplawski 2025-05-09 07:49:53 +02:00
parent dee6c21fe0
commit 01961aea8b

View File

@ -4009,6 +4009,10 @@ void tst_QFile::supportsMoveToTrash()
#elif !defined(AT_FDCWD)
// Unix platforms without the POSIX atfile support: not supported
QVERIFY(!QFile::supportsMoveToTrash());
#elif defined(Q_OS_VXWORKS)
// AT_FDCWD exists in VxWorks 25.03,
// but required POSIX APIs for trash support are missing
QVERIFY(!QFile::supportsMoveToTrash());
#else
QVERIFY(QFile::supportsMoveToTrash());
#endif