[PATCH 1/5] test: access: split off test case formatting from execution

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Avi Kivity <avi@xxxxxxxxxx>
---
 kvm/user/test/x86/access.c |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/kvm/user/test/x86/access.c b/kvm/user/test/x86/access.c
index 5eadff8..dbc1213 100644
--- a/kvm/user/test/x86/access.c
+++ b/kvm/user/test/x86/access.c
@@ -557,9 +557,8 @@ int ac_test_do_access(ac_test_t *at)
     return 1;
 }
 
-int ac_test_exec(ac_test_t *at)
+static void ac_test_show(ac_test_t *at)
 {
-    int r;
     char line[5000];
 
     *line = 0;
@@ -571,6 +570,13 @@ int ac_test_exec(ac_test_t *at)
 	}
     strcat(line, ": ");
     printf("%s", line);
+}
+
+int ac_test_exec(ac_test_t *at)
+{
+    int r;
+
+    ac_test_show(at);
     ac_test_setup_pte(at);
     r = ac_test_do_access(at);
     return r;
-- 
1.7.0.4

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux