diff options
| author | Ilya Leoshkevich <iii@linux.ibm.com> | 2024-02-06 01:22:02 +0100 |
|---|---|---|
| committer | Thomas Huth <thuth@redhat.com> | 2024-02-06 10:27:50 +0100 |
| commit | 3faebbcd64a657a5fd1f03cbad4bd171331f61b6 (patch) | |
| tree | f03d417956782f098df071847d4688b1bb58c060 /util/oslib-win32.c | |
| parent | fceffd6b3fa8f1e10248baf75af0c62a9f20df7b (diff) | |
| download | focaccia-qemu-3faebbcd64a657a5fd1f03cbad4bd171331f61b6.tar.gz focaccia-qemu-3faebbcd64a657a5fd1f03cbad4bd171331f61b6.zip | |
test-util-filemonitor: Adapt to the FreeBSD inotify rename semantics
Unlike on Linux, on FreeBSD renaming a file when the destination
already exists results in an IN_DELETE event for that existing file:
$ FILEMONITOR_DEBUG=1 build/tests/unit/test-util-filemonitor
Rename /tmp/test-util-filemonitor-K13LI2/fish/one.txt -> /tmp/test-util-filemonitor-K13LI2/two.txt
Event id=200000000 event=2 file=one.txt
Queue event id 200000000 event 2 file one.txt
Queue event id 100000000 event 2 file two.txt
Queue event id 100000002 event 2 file two.txt
Queue event id 100000000 event 0 file two.txt
Queue event id 100000002 event 0 file two.txt
Event id=100000000 event=0 file=two.txt
Expected event 0 but got 2
This difference in behavior is not expected to break the real users, so
teach the test to accept it.
Suggested-by: "Daniel P. Berrange" <berrange@redhat.com>
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Message-ID: <20240206002344.12372-4-iii@linux.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'util/oslib-win32.c')
0 files changed, 0 insertions, 0 deletions