Eric Pouech wrote:
Tony Lambregts wrote:
Eric Pouech on Sunday, September 14, 2003 10:46 AM wrote
Eric since you wrote the test could you shed some light on it.
I think the wrapped tests should fail: MSDN states that wrapping isn't supported in 95/98 (the test/console.c believes it's always supported)
but this testSimple() should work in all cases
I don't grep what you mean. What is this testSimple()
it's the name of the function which fails at line 128 in test/console.c
Ah... But it's name is testWriteSimple() this is what I see in CVS..
113 static void testWriteSimple(HANDLE hCon, COORD sbSize) 114 { 115 COORD c; 116 DWORD len; 117 const char* mytest = "abcdefg"; 118 const size_t mylen = strlen(mytest); 119 120 /* single line write */ 121 c.X = c.Y = 0; 122 ok(SetConsoleCursorPosition(hCon, c) != 0, "Cursor in upper-left"); 123 124 ok(WriteConsole(hCon, mytest, mylen, &len, NULL) != 0 && len == mylen, "WriteConsole"); 125 c.Y = 0; 126 for (c.X = 0; c.X < mylen; c.X++) 127 { 128 okCHAR(hCon, c, mytest[c.X], TEST_ATTRIB); 129 } 130 131 okCURSOR(hCon, c); 132 okCHAR(hCon, c, ' ', DEFAULT_ATTRIB); 133 }
at line 121 c.X and c.Y are set to 0 and line so I would expect that the output should be at the TOP-RIGHT corner of the screen. However what I am seeing is that the ouput for this is showing up at the TOP-LEFT (less 3) corner of the screen.
So I see abc at the top right hand corner of the screen and the test is locked up under Windows 9x. Pressing CTRL-C allows the test to continue.
agreed. My point was that I could some other tests in console.c to fail under win98, but not this one. Does the same behavior happens if you redirect the output to a file instead of printing it on screen
I have attached the results of the test that I ran like so:
kernel32_crosstest.exe console > results.txt
I get the same results if I run it in a DOS box or Full Screen. From the results and behavior of the test I have to wonder what is the actual value of c.Y.
Perplexed....
Tony Lambregts