From c0c66a42ced590cadfb55efc82f80af5f035020e 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. Pick-to: 6.7 Task-number: QTBUG-115777 Change-Id: Ic503c776002087d461c32f890795c27be4b1ca34 Reviewed-by: Thiago Macieira --- 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 6a6339a8ec..5242988fd1 100644 --- a/tests/auto/corelib/io/qstorageinfo/tst_qstorageinfo.cpp +++ b/tests/auto/corelib/io/qstorageinfo/tst_qstorageinfo.cpp @@ -262,7 +262,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 };