diff options
| author | Łukasz Matysiak <lukasz.matysiak@qt.io> | 2024-05-14 18:10:33 +0200 |
|---|---|---|
| committer | Łukasz Matysiak <lukasz.matysiak@qt.io> | 2024-05-15 18:22:39 +0200 |
| commit | 7fad4df8df29a1aaf6fbc37d8e5b7c36c56094e0 (patch) | |
| tree | 16f368be186626be4ba63293b9b12388e5e1c77d /src/tools/uic/cpp/cppwriteinitialization.cpp | |
| parent | cb8e5e0dd965b849a88ba971e3dc90169d4dc7ce (diff) | |
Fix tst_QFileSysteMWatcher::basicTest on VxWorks
POSIX2008 demands that `stat` contains an `st_mtim` field of type `timespec`.
That field holds modification time with a nanosecond resolution.
VxWorks reports _POSIX_VERSION as 200112.
The `stat` struct does not contain `st_mtim`, but rather an `st_mtime` which
holds a `time_t` which contains seconds.
Because of that, when the test creates and modifies a file within one
second, the polling watcher does not detect any changes.
Fix the problem by postponing the watcher by 1s.
Pick-to: 6.7
Task-number: QTBUG-115777
Change-Id: Idfc1d7b2e111967a42c93c0adaffaa7d28ee20a7
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/tools/uic/cpp/cppwriteinitialization.cpp')
0 files changed, 0 insertions, 0 deletions
