On 25/8/26 21:09, Marc-André Lureau wrote:
Reviewed-by: Daniel P. Berrangé <[email protected]>
Reviewed-by: Denis V. Lunev <[email protected]>
Signed-off-by: Marc-André Lureau <[email protected]>
---
  tests/qtest/ahci-test.c | 5 ++---
  tests/qtest/ide-test.c  | 4 ++--
  2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/tests/qtest/ahci-test.c b/tests/qtest/ahci-test.c
index 71d23fe56af7..0528a422fafc 100644
--- a/tests/qtest/ahci-test.c
+++ b/tests/qtest/ahci-test.c
@@ -1719,8 +1719,7 @@ static void test_atapi_engine_restart_in_flight(bool dma)
      qtest_memset(ahci->parent->qts, buffer, 0x00, ATAPI_SECTOR_SIZE);
/* Suspend the next backend read so the ATAPI read stays in flight. */
-    g_free(qtest_hmp(ahci->parent->qts,
-                     "qemu-io drive0 \"break read_aio rd\""));
+    qtest_qemu_io(ahci->parent->qts, "drive0", "break read_aio rd");

Preferably qtest_block_cmd(), otherwise:
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>


Reply via email to