From 01961aea8b9b60c502475f6e190f7897cc80a852 Mon Sep 17 00:00:00 2001 From: Jacek Poplawski Date: Fri, 9 May 2025 07:49:53 +0200 Subject: [PATCH] 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 --- tests/auto/corelib/io/qfile/tst_qfile.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/auto/corelib/io/qfile/tst_qfile.cpp b/tests/auto/corelib/io/qfile/tst_qfile.cpp index 184853b28d7..43a60ddeb23 100644 --- a/tests/auto/corelib/io/qfile/tst_qfile.cpp +++ b/tests/auto/corelib/io/qfile/tst_qfile.cpp @@ -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