Francois Gouget : kernel32/tests: Reduce the size of the console buffer to speed up the tests.

Alexandre Julliard julliard at winehq.org
Mon Feb 11 13:06:32 CST 2013


Module: wine
Branch: master
Commit: c2a5b04d01882668f433e74bcaf4ff1c11be4167
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=c2a5b04d01882668f433e74bcaf4ff1c11be4167

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Mon Feb 11 15:36:15 2013 +0100

kernel32/tests: Reduce the size of the console buffer to speed up the tests.

---

 dlls/kernel32/tests/console.c |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/dlls/kernel32/tests/console.c b/dlls/kernel32/tests/console.c
index b1907d7..df752f4 100644
--- a/dlls/kernel32/tests/console.c
+++ b/dlls/kernel32/tests/console.c
@@ -2608,6 +2608,18 @@ START_TEST(console)
     ok(ret, "Getting sb info\n");
     if (!ret) return;
 
+    /* Reduce the size of the buffer to the visible area plus 3 lines to speed
+     * up the tests.
+     */
+    trace("Visible area: %dx%d - %dx%d Buffer size: %dx%d\n", sbi.srWindow.Left, sbi.srWindow.Top, sbi.srWindow.Right, sbi.srWindow.Bottom, sbi.dwSize.X, sbi.dwSize.Y);
+    sbi.dwSize.Y = size = (sbi.srWindow.Bottom + 1) + 3;
+    ret = SetConsoleScreenBufferSize(hConOut, sbi.dwSize);
+    ok(ret, "Setting sb info\n");
+    ret = GetConsoleScreenBufferInfo(hConOut, &sbi);
+    ok(ret, "Getting sb info\n");
+    ok(sbi.dwSize.Y == size, "Unexpected buffer size: %d instead of %d\n", sbi.dwSize.Y, size);
+    if (!ret) return;
+
     /* Non interactive tests */
     testCursor(hConOut, sbi.dwSize);
     /* test parameters (FIXME: test functionality) */




More information about the wine-cvs mailing list