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
parent
23ecc6ce70
commit
c0c66a42ce
|
|
@ -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
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue