diff options
author | Max Reitz <mreitz@redhat.com> | 2017-11-09 21:30:25 +0100 |
---|---|---|
committer | Max Reitz <mreitz@redhat.com> | 2017-11-14 18:06:25 +0100 |
commit | 19026817f71c698d1acb9c85bf5544b799fc5c2c (patch) | |
tree | 09da9360af68e5d62ee915177ccd5db452935541 /tests/qemu-iotests/061 | |
parent | ddc7093eec38c875a6a2ae18a9ecf563107d9ff0 (diff) | |
download | qemu-19026817f71c698d1acb9c85bf5544b799fc5c2c.zip |
iotests: Make 136 less flaky
136 executes some AIO requests without a final aio_flush; then it
advances the virtual clock and thus expects the last access time of the
device to be less than the current time when queried (i.e. idle_time_ns
to be greater than 0). However, without the aio_flush, some requests
may be settled after the clock_step invocation. In that case,
idle_time_ns would be 0 and the test fails.
Fix this by adding an aio_flush if any AIO request other than some other
aio_flush has been executed.
Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 20171109203025.27493-6-mreitz@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/061')
0 files changed, 0 insertions, 0 deletions