From 2c6a26efc685dcb2eb3249e41ff8ff3e2cc15cfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Koz=C5=82owski?= Date: Fri, 29 Mar 2024 10:01:18 +0100 Subject: [PATCH] Exclude sync() usage from VxWorks platform This function is not available in VxWorks libraries and it is not mandatory for proper qstorageinfo test execution. Task-number: QTBUG-115777 Change-Id: Ic503c776002087d461c32f890795c27be4b1ca34 Reviewed-by: Thiago Macieira (cherry picked from commit c0c66a42ced590cadfb55efc82f80af5f035020e) Reviewed-by: Qt Cherry-pick Bot --- tests/auto/corelib/io/qstorageinfo/tst_qstorageinfo.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/auto/corelib/io/qstorageinfo/tst_qstorageinfo.cpp b/tests/auto/corelib/io/qstorageinfo/tst_qstorageinfo.cpp index 98d1a9a2ebe..49dbadd89ab 100644 --- a/tests/auto/corelib/io/qstorageinfo/tst_qstorageinfo.cpp +++ b/tests/auto/corelib/io/qstorageinfo/tst_qstorageinfo.cpp @@ -255,7 +255,9 @@ void tst_QStorageInfo::freeSpaceUpdate() FlushFileBuffers(HANDLE(_get_osfhandle(file.handle()))); #elif _POSIX_VERSION >= 200112L fsync(file.handle()); +# ifndef Q_OS_VXWORKS sync(); +# endif // Q_OS_VXWORKS #endif };