tests: Add proper newlines for qmp_fd_receive
PATCH 1/1 tests: Add proper newlines for qmp_fd_receive
It changes QTEST_LOG=1 results a bit more lovely, from:
{"return": ... }{"execute": "query-migrate"}
{"return": ... }{"execute": "query-migrate"}
Into:
{"execute": "query-migrate"}
{"return": ... }
{"execute": "query-migrate"}
{"return": ... }
CC Thomas Huth <[email protected]>
CC Laurent Vivier <[email protected]>
CC Paolo Bonzini <[email protected]>
Signed-off-by Peter Xu <[email protected]>
--- tests/libqtest.c | 4 ++++ 1 file changed, 4 insertions(+)
tests/libqtest.c +4 -0
@@ -532,6 +532,10 @@ QDict *qmp_fd_receive(int fd) }json_message_parser_destroy (&qmp.parser); +if (log) { +fprintf (stderr,"\n\n" ); + } +return qmp.response; }
Signature · 1 line
2.17.1