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 <thiago.macieira@intel.com>
bb10
Tomasz Kozłowski 2024-03-29 10:01:18 +01:00
parent 23ecc6ce70
commit c0c66a42ce
1 changed files with 2 additions and 0 deletions

View File

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