aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2017-12-14 15:32:32 +0000
committerPeter Maydell <peter.maydell@linaro.org>2017-12-14 15:32:32 +0000
commit0ef0583d5adceb9138bdb47494dabd1549ac5b6d (patch)
tree2f9963716fadafe8f79c115f0203baf9f32a000a /tests
parent5705b536b597de00d82807bf14bb38f542aa4491 (diff)
parent0eaf3b824745cacebfc321aef6787528d33d58fe (diff)
downloadqemu-0ef0583d5adceb9138bdb47494dabd1549ac5b6d.zip
qemu-0ef0583d5adceb9138bdb47494dabd1549ac5b6d.tar.gz
qemu-0ef0583d5adceb9138bdb47494dabd1549ac5b6d.tar.bz2
Merge remote-tracking branch 'remotes/dgilbert/tags/pull-hmp-20171214' into staging
HMP pull 2017-12-14 # gpg: Signature made Thu 14 Dec 2017 12:46:41 GMT # gpg: using RSA key 0x0516331EBC5BFDE7 # gpg: Good signature from "Dr. David Alan Gilbert (RH2) <dgilbert@redhat.com>" # Primary key fingerprint: 45F5 C71B 4A0C B7FB 977A 9FA9 0516 331E BC5B FDE7 * remotes/dgilbert/tags/pull-hmp-20171214: tests: test-hmp: print command execution result hmp-commands: Remove the deprecated usb_add and usb_del Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/test-hmp.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/test-hmp.c b/tests/test-hmp.c
index 5677fbf..5b7e447 100644
--- a/tests/test-hmp.c
+++ b/tests/test-hmp.c
@@ -78,10 +78,13 @@ static void test_commands(void)
int i;
for (i = 0; hmp_cmds[i] != NULL; i++) {
+ response = hmp("%s", hmp_cmds[i]);
if (verbose) {
- fprintf(stderr, "\t%s\n", hmp_cmds[i]);
+ fprintf(stderr,
+ "\texecute HMP command: %s\n"
+ "\tresult : %s\n",
+ hmp_cmds[i], response);
}
- response = hmp("%s", hmp_cmds[i]);
g_free(response);
}