1
0
mirror of https://github.com/wine-mirror/wine synced 2024-07-08 03:45:57 +00:00

conhost/tests: Fix some conditions on tty test termination.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
This commit is contained in:
Eric Pouech 2022-10-26 15:36:42 +02:00 committed by Alexandre Julliard
parent 614b7d7430
commit 9317a331f1

View File

@ -1858,6 +1858,16 @@ static void test_pseudoconsole(void)
if (i != 39) expect_output_sequence("\r\n");
}
skip_sequence("\x1b[H\x1b[?25h");
/* native sometimes redraws the screen afterwards */
if (skip_sequence("\x1b[25l"))
{
unsigned int line_feed = 0;
/* not checking exact output, depends too heavily on previous tests */
for (i = 0; i < console_output_count - 2; i++)
if (!memcmp(console_output + i, "\r\n", 2)) line_feed++;
ok(line_feed == 39, "Wrong number of line feeds %u\n", line_feed);
console_output_count = 0;
}
}
expect_empty_output();