static const char *hmp_cmds[] = {
"boot_set ndc",
"chardev-add null,id=testchardev1",
- "chardev-send-break testchardev2",
+ "chardev-send-break testchardev1",
"chardev-change testchardev1 ringbuf",
"chardev-remove testchardev1",
"commit all",
"mouse_button 0",
"device_del mouse1",
"dump-guest-memory /dev/null 0 4096",
+ "dump-guest-memory /dev/null",
"gdbserver",
"host_net_add user id=net0",
"hostfwd_add tcp::43210-:43210",
if (verbose) {
fprintf(stderr, "\t%s\n", hmp_cmds[i]);
}
- response = hmp(hmp_cmds[i]);
+ response = hmp("%s", hmp_cmds[i]);
g_free(response);
}
if (verbose) {
fprintf(stderr, "\t%s\n", info);
}
- resp = hmp(info);
+ resp = hmp("%s", info);
g_free(resp);
/* And move forward to the next line */
info = strchr(endp + 1, '\n');
char *path;
/* Ignore blacklisted machines that have known problems */
- if (!strcmp("puv3", mname) || !strcmp("tricore_testboard", mname) ||
- !strcmp("xenfv", mname) || !strcmp("xenpv", mname)) {
+ if (!strcmp("xenfv", mname) || !strcmp("xenpv", mname)) {
return;
}
qtest_cb_for_every_machine(add_machine_test_case);
+ /* as none machine has no memory by default, add a test case with memory */
+ qtest_add_data_func("hmp/none+2MB", g_strdup("none -m 2"), test_machine);
+
return g_test_run();
}