summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Kozłowski <tomasz.kozlowski@qt.io>2024-03-29 10:01:18 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2024-05-16 13:54:50 +0000
commit2c6a26efc685dcb2eb3249e41ff8ff3e2cc15cfe (patch)
tree6d11de369a5d00fcb99ff927b89a13e23314b8f8
parent4be9c76f1cdccc0dc2d868827d9a0e788399cdc4 (diff)
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>
-rw-r--r--tests/auto/corelib/io/qstorageinfo/tst_qstorageinfo.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/corelib/io/qstorageinfo/tst_qstorageinfo.cpp b/tests/auto/corelib/io/qstorageinfo/tst_qstorageinfo.cpp
index 98d1a9a2eb..49dbadd89a 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
};