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 <thiago.macieira@intel.com>
(cherry picked from commit c0c66a42ced590cadfb55efc82f80af5f035020e)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Tomasz Kozłowski 2024-03-29 10:01:18 +01:00 committed by Qt Cherry-pick Bot
parent 4be9c76f1c
commit 2c6a26efc6

View File

@ -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
};