Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
d36a1792
Commit
d36a1792
authored
Sep 15, 2020
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 15, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
conhost/tests: Allow clear screen on console exit.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6f5872cb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
tty.c
programs/conhost/tests/tty.c
+15
-2
No files found.
programs/conhost/tests/tty.c
View file @
d36a1792
...
...
@@ -137,9 +137,9 @@ static BOOL expect_erase_line_(unsigned line, unsigned int cnt)
if
(
skip_sequence
(
"
\x1b
[K"
))
return
FALSE
;
ok
(
broken
(
1
),
"expected erase line
\n
"
);
sprintf
(
buf
,
"
\x1b
[%uX"
,
cnt
);
expect_output_sequence
(
buf
);
/* erase the rest of the line */
expect_output_sequence
_
(
line
,
cnt
,
buf
);
/* erase the rest of the line */
sprintf
(
buf
,
"
\x1b
[%uC"
,
cnt
);
expect_output_sequence
(
buf
);
/* move cursor to the end of the line */
expect_output_sequence
_
(
line
,
cnt
,
buf
);
/* move cursor to the end of the line */
return
TRUE
;
}
...
...
@@ -1280,6 +1280,19 @@ static void test_pseudoconsole(void)
CloseHandle
(
child_pipe
);
wait_child_process
(
child_process
);
CloseHandle
(
child_process
);
/* native sometimes clears the screen here */
if
(
skip_sequence
(
"
\x1b
[25l"
))
{
unsigned
int
i
;
skip_sequence
(
"
\x1b
[H"
);
for
(
i
=
0
;
i
<
40
;
i
++
)
{
expect_output_sequence
(
"
\x1b
[K"
);
if
(
i
!=
39
)
expect_output_sequence
(
"
\r\n
"
);
}
skip_sequence
(
"
\x1b
[H
\x1b
[?25h"
);
}
expect_empty_output
();
pClosePseudoConsole
(
console
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment