Blame SOURCES/0037-tests-hmp-test-none-machine-with-memory.patch

4a2fec
From f4217185263cd9a3e2da574648b9bf72e65d9ad6 Mon Sep 17 00:00:00 2001
4a2fec
From: Laurent Vivier <lvivier@redhat.com>
4a2fec
Date: Wed, 13 Sep 2017 16:20:36 +0200
4a2fec
Subject: tests/hmp: test "none" machine with memory
4a2fec
4a2fec
and add a test case of dump-guest-memory without
4a2fec
"[begin length]" parameters.
4a2fec
4a2fec
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
4a2fec
Reviewed-by: Thomas Huth <thuth@redhat.com>
4a2fec
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
4a2fec
Message-Id: <20170913142036.2469-5-lvivier@redhat.com>
4a2fec
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
4a2fec
(cherry picked from commit 4e5c3a3742adcf7514b73f4da1c005ee7b35e41b)
4a2fec
---
4a2fec
 tests/test-hmp.c | 4 ++++
4a2fec
 1 file changed, 4 insertions(+)
4a2fec
4a2fec
diff --git a/tests/test-hmp.c b/tests/test-hmp.c
4a2fec
index 729c033..d124e81 100644
4a2fec
--- a/tests/test-hmp.c
4a2fec
+++ b/tests/test-hmp.c
4a2fec
@@ -35,6 +35,7 @@ static const char *hmp_cmds[] = {
4a2fec
     "mouse_button 0",
4a2fec
     "device_del mouse1",
4a2fec
     "dump-guest-memory /dev/null 0 4096",
4a2fec
+    "dump-guest-memory /dev/null",
4a2fec
     "gdbserver",
4a2fec
     "host_net_add user id=net0",
4a2fec
     "hostfwd_add tcp::43210-:43210",
4a2fec
@@ -159,5 +160,8 @@ int main(int argc, char **argv)
4a2fec
 
4a2fec
     qtest_cb_for_every_machine(add_machine_test_case);
4a2fec
 
4a2fec
+    /* as none machine has no memory by default, add a test case with memory */
4a2fec
+    qtest_add_data_func("hmp/none+2MB", g_strdup("none -m 2"), test_machine);
4a2fec
+
4a2fec
     return g_test_run();
4a2fec
 }
4a2fec
-- 
4a2fec
1.8.3.1
4a2fec