summaryrefslogtreecommitdiff
path: root/tests/virtio-blk-test.c
diff options
context:
space:
mode:
authorFam Zheng <famz@redhat.com>2017-05-03 00:35:49 +0800
committerKevin Wolf <kwolf@redhat.com>2017-05-11 11:08:40 +0200
commit2420d369a2c16867ee18fd363b617aa5a66ab933 (patch)
tree58aa261a56a0e16b22fcea62c9bbf781f77fb019 /tests/virtio-blk-test.c
parent7ceb4fc1147ea34a50f1846db3782a8329a4efb4 (diff)
downloadqemu-2420d369a2c16867ee18fd363b617aa5a66ab933.tar.gz
tests: Use null-co:// instead of /dev/null as the dummy image
Signed-off-by: Fam Zheng <famz@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'tests/virtio-blk-test.c')
-rw-r--r--tests/virtio-blk-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/virtio-blk-test.c b/tests/virtio-blk-test.c
index 1eee95df49..fd2078c9da 100644
--- a/tests/virtio-blk-test.c
+++ b/tests/virtio-blk-test.c
@@ -63,7 +63,7 @@ static QOSState *pci_test_start(void)
const char *arch = qtest_get_arch();
char *tmp_path;
const char *cmd = "-drive if=none,id=drive0,file=%s,format=raw "
- "-drive if=none,id=drive1,file=/dev/null,format=raw "
+ "-drive if=none,id=drive1,file=null-co://,format=raw "
"-device virtio-blk-pci,id=drv0,drive=drive0,"
"addr=%x.%x";