Paolo Bonzini 563890c7c7 libqtest: escape strings in QMP commands, fix leak
libqtest is using g_strdup_printf to format QMP commands, but
this does not work if the argument strings need to be escaped.
Instead, use the fancy %-formatting functionality of QObject.
The only change required in tests is that strings have to be
formatted as %s, not '%s' or \"%s\".  Luckily this usage of
parameterized QMP commands is not that frequent.

The leak is in socket_sendf.  Since we are extracting the send
loop to a new function, fix it now.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2014-07-01 10:20:41 +02:00
..
2014-06-02 16:28:59 +02:00
2013-10-28 17:34:42 +01:00
2014-05-28 14:47:35 +01:00
2014-05-05 20:58:33 +02:00
2014-05-27 23:42:16 +03:00
2014-02-14 16:22:33 +01:00
2014-05-05 20:58:33 +02:00
2014-03-31 22:36:17 +02:00
2014-05-05 20:58:33 +02:00
2014-05-05 20:58:33 +02:00
2014-02-14 21:07:13 +01:00
2014-06-23 11:01:25 -04:00
2014-02-14 20:50:19 +01:00
2014-03-31 22:35:03 +02:00
2014-02-14 16:22:33 +01:00
2014-02-14 16:22:33 +01:00
2014-05-28 14:27:42 +02:00
2014-02-14 21:02:27 +01:00
2014-03-31 22:35:50 +02:00
2014-03-13 01:21:56 +01:00
2014-02-14 21:01:03 +01:00
2014-03-13 01:21:56 +01:00
2014-02-14 16:22:33 +01:00