diff options
author | Andrey Shinkevich <andrey.shinkevich@virtuozzo.com> | 2019-07-15 19:07:59 +0300 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2019-07-19 13:19:09 +0200 |
commit | a6862418fec40727b392c86dc13d9ec980efcb15 (patch) | |
tree | 88d7c3a9001e0152525b2bd66e89fc083d5c00ec /tests/qemu-iotests/227 | |
parent | 0274f45bdef73283f2c213610f11d4e5dcba43b6 (diff) | |
download | qemu-a6862418fec40727b392c86dc13d9ec980efcb15.zip qemu-a6862418fec40727b392c86dc13d9ec980efcb15.tar.gz qemu-a6862418fec40727b392c86dc13d9ec980efcb15.tar.bz2 |
iotests: Set read-zeroes on in null block driver for Valgrind
The Valgrind tool reports about the uninitialised buffer 'buf'
instantiated on the stack of the function guess_disk_lchs().
Pass 'read-zeroes=on' to the null block driver to make it deterministic.
The output of the tests 051, 186 and 227 now includes the parameter
'read-zeroes'. So, the benchmark output files are being changed too.
Suggested-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Andrey Shinkevich <andrey.shinkevich@virtuozzo.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/227')
-rwxr-xr-x | tests/qemu-iotests/227 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/qemu-iotests/227 b/tests/qemu-iotests/227 index bdd727a..637d7c3 100755 --- a/tests/qemu-iotests/227 +++ b/tests/qemu-iotests/227 @@ -57,7 +57,7 @@ echo echo '=== blockstats with -drive if=virtio ===' echo -run_qemu -drive driver=null-co,if=virtio <<EOF +run_qemu -drive driver=null-co,read-zeroes=on,if=virtio <<EOF { "execute": "qmp_capabilities" } { "execute": "query-blockstats"} { "execute": "quit" } @@ -87,7 +87,7 @@ echo echo '=== blockstats with -blockdev and -device ===' echo -run_qemu -blockdev driver=null-co,node-name=null -device virtio-blk,drive=null,id=virtio0 <<EOF +run_qemu -blockdev driver=null-co,read-zeroes=on,node-name=null -device virtio-blk,drive=null,id=virtio0 <<EOF { "execute": "qmp_capabilities" } { "execute": "query-blockstats"} { "execute": "quit" } |