repository: /home/avi/kvm branch: master commit 7fe5f8e2c65ca86d06320076c05a49a47609273d Author: Avi Kivity <[EMAIL PROTECTED]> Date: Sun Dec 9 14:51:52 2007 +0200
kvm: testsuite: improve access test speed by buffering the test description line, we make the test much faster, requiring only three exits per test case. Signed-off-by: Avi Kivity <[EMAIL PROTECTED]> diff --git a/user/test/x86/access.c b/user/test/x86/access.c index df62c20..adfb944 100644 --- a/user/test/x86/access.c +++ b/user/test/x86/access.c @@ -535,12 +535,17 @@ int ac_test_do_access(ac_test_t *at) int ac_test_exec(ac_test_t *at) { int r; + char line[5000]; - printf("test"); + *line = 0; + strcat(line, "test"); for (int i = 0; i < NR_AC_FLAGS; ++i) - if (at->flags[i]) - printf(" %s", ac_names[i]); - printf(": "); + if (at->flags[i]) { + strcat(line, " "); + strcat(line, ac_names[i]); + } + strcat(line, ": "); + printf("%s", line); ac_test_setup_pte(at); r = ac_test_do_access(at); return r; ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ kvm-commits mailing list kvm-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-commits