mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-01 09:50:52 +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:
parent
614b7d7430
commit
9317a331f1
1 changed files with 10 additions and 0 deletions
|
@ -1858,6 +1858,16 @@ static void test_pseudoconsole(void)
|
||||||
if (i != 39) expect_output_sequence("\r\n");
|
if (i != 39) expect_output_sequence("\r\n");
|
||||||
}
|
}
|
||||||
skip_sequence("\x1b[H\x1b[?25h");
|
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();
|
expect_empty_output();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue