aboutsummaryrefslogtreecommitdiff
path: root/tests/megasas-test.c
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2019-04-09 10:52:42 +0200
committerThomas Huth <thuth@redhat.com>2019-05-08 16:59:28 +0200
commit2756f82af412c6a0a06030e8ff8df0861d639c7a (patch)
treea733106097920aceeea4f7c892b15f268506a09a /tests/megasas-test.c
parent6bb58d200a9e68808e856df76a0e2fd3bf38e35d (diff)
downloadqemu-2756f82af412c6a0a06030e8ff8df0861d639c7a.zip
qemu-2756f82af412c6a0a06030e8ff8df0861d639c7a.tar.gz
qemu-2756f82af412c6a0a06030e8ff8df0861d639c7a.tar.bz2
tests/megasas: Make test independent of global_qtest
The test uses memwrite() and thus relies on global_qtest. Let's replace it with qtest_memwrite(), so that we are independent from global_qtest here. Message-Id: <20190409085245.31548-3-thuth@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'tests/megasas-test.c')
-rw-r--r--tests/megasas-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/megasas-test.c b/tests/megasas-test.c
index 33aa970..1111d33 100644
--- a/tests/megasas-test.c
+++ b/tests/megasas-test.c
@@ -66,7 +66,7 @@ static void megasas_pd_get_info_fuzz(void *obj, void *data, QGuestAllocator *all
context[7] = cpu_to_le32(0);
context_pa = guest_alloc(alloc, sizeof(context));
- memwrite(context_pa, context, sizeof(context));
+ qtest_memwrite(dev->bus->qts, context_pa, context, sizeof(context));
qpci_io_writel(dev, bar, 0x40, context_pa);
}