qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 2/4] libqtest: split qtest_spawn_qemu function


From: Thomas Huth
Subject: Re: [PATCH 2/4] libqtest: split qtest_spawn_qemu function
Date: Tue, 31 Jan 2023 16:12:25 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0

On 17/01/2023 09.07, Paolo Bonzini wrote:
In order to create a function that allows testing of invalid command
lines, extract the parts of qtest_init_without_qmp_handshake that do
not require any successful set up of sockets.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
  tests/qtest/libqtest.c | 103 ++++++++++++++++++++++-------------------
  1 file changed, 55 insertions(+), 48 deletions(-)

diff --git a/tests/qtest/libqtest.c b/tests/qtest/libqtest.c
index 5cb38f90da19..4d9cf919b2f7 100644
--- a/tests/qtest/libqtest.c
+++ b/tests/qtest/libqtest.c
@@ -342,60 +342,25 @@ static pid_t qtest_create_process(char *cmd)
  }
  #endif /* _WIN32 */
-QTestState *qtest_init_without_qmp_handshake(const char *extra_args)
+static QTestState *G_GNUC_PRINTF(1, 0) qtest_spawn_qemu(const char *fmt, ...)

Gluing the "*" to G_GNUC_PRINTF looks weird, could you maybe put that G_GNUC_PRINTF somewhere else?

 Thomas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]