From: Avi Kivity Subject: [PATCH 1/5] test: access: split off test case formatting from execution Date: Wed, 28 Apr 2010 18:47:54 +0300 Message-ID: <1272469678-10728-2-git-send-email-avi@redhat.com> References: <1272469678-10728-1-git-send-email-avi@redhat.com> Cc: kvm@vger.kernel.org To: Marcelo Tosatti Return-path: Received: from mx1.redhat.com ([209.132.183.28]:50763 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752159Ab0D1Pr7 (ORCPT ); Wed, 28 Apr 2010 11:47:59 -0400 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o3SFlxpj017424 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 28 Apr 2010 11:47:59 -0400 Received: from cleopatra.tlv.redhat.com (cleopatra.tlv.redhat.com [10.35.255.11]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o3SFlwMf000943 for ; Wed, 28 Apr 2010 11:47:59 -0400 In-Reply-To: <1272469678-10728-1-git-send-email-avi@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: Signed-off-by: Avi Kivity --- 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