summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Kozłowski <tomasz.kozlowski@qt.io>2024-03-29 10:01:18 +0100
committerTomasz Kozłowski <tomasz.kozlowski@qt.io>2024-05-07 17:30:37 +0200
commitc0c66a42ced590cadfb55efc82f80af5f035020e (patch)
tree9dfeaa1b0032dc21ba041989a3d2f78593540b56
parent23ecc6ce70a80d1f44ebdd4409f7956f8037d1be (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. Pick-to: 6.7 Task-number: QTBUG-115777 Change-Id: Ic503c776002087d461c32f890795c27be4b1ca34 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
-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 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
};