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
d11df512
Commit
d11df512
authored
Oct 14, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Oct 14, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Fix some test failures on Win9x/WinMe.
parent
af683e71
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
2 deletions
+21
-2
console.c
dlls/kernel32/tests/console.c
+21
-2
No files found.
dlls/kernel32/tests/console.c
View file @
d11df512
...
...
@@ -270,6 +270,7 @@ static void testWriteNotWrappedProcessed(HANDLE hCon, COORD sbSize)
const
int
mylen
=
strlen
(
mytest
);
const
int
mylen2
=
strchr
(
mytest
,
'\n'
)
-
mytest
;
int
p
;
WORD
attr
;
ok
(
GetConsoleMode
(
hCon
,
&
mode
)
&&
SetConsoleMode
(
hCon
,
(
mode
|
ENABLE_PROCESSED_OUTPUT
)
&
~
ENABLE_WRAP_AT_EOL_OUTPUT
),
"clearing wrap at EOL & setting processed output
\n
"
);
...
...
@@ -284,6 +285,15 @@ static void testWriteNotWrappedProcessed(HANDLE hCon, COORD sbSize)
{
okCHAR
(
hCon
,
c
,
mytest
[
c
.
X
-
sbSize
.
X
+
5
],
TEST_ATTRIB
);
}
ReadConsoleOutputAttribute
(
hCon
,
&
attr
,
1
,
c
,
&
len
);
/* Win9x and WinMe change the attribs for '\n' up to 'f' */
if
(
attr
==
TEST_ATTRIB
)
{
win_skip
(
"Win9x/WinMe don't respect ~ENABLE_WRAP_AT_EOL_OUTPUT
\n
"
);
return
;
}
okCHAR
(
hCon
,
c
,
' '
,
DEFAULT_ATTRIB
);
c
.
X
=
0
;
c
.
Y
++
;
...
...
@@ -381,6 +391,7 @@ static void testWriteWrappedProcessed(HANDLE hCon, COORD sbSize)
const
char
*
mytest
=
"abcd
\n
f
\t
g"
;
const
int
mylen
=
strlen
(
mytest
);
int
p
;
WORD
attr
;
ok
(
GetConsoleMode
(
hCon
,
&
mode
)
&&
SetConsoleMode
(
hCon
,
mode
|
(
ENABLE_WRAP_AT_EOL_OUTPUT
|
ENABLE_PROCESSED_OUTPUT
)),
"setting wrap at EOL & processed output
\n
"
);
...
...
@@ -396,7 +407,11 @@ static void testWriteWrappedProcessed(HANDLE hCon, COORD sbSize)
okCHAR
(
hCon
,
c
,
mytest
[
p
],
TEST_ATTRIB
);
}
c
.
X
=
sbSize
.
X
-
9
+
p
;
okCHAR
(
hCon
,
c
,
' '
,
DEFAULT_ATTRIB
);
ReadConsoleOutputAttribute
(
hCon
,
&
attr
,
1
,
c
,
&
len
);
if
(
attr
==
TEST_ATTRIB
)
win_skip
(
"Win9x/WinMe changes attribs for '
\\
n' up to 'f'
\n
"
);
else
okCHAR
(
hCon
,
c
,
' '
,
DEFAULT_ATTRIB
);
c
.
X
=
0
;
c
.
Y
++
;
okCHAR
(
hCon
,
c
,
mytest
[
5
],
TEST_ATTRIB
);
for
(
c
.
X
=
1
;
c
.
X
<
8
;
c
.
X
++
)
...
...
@@ -419,7 +434,11 @@ static void testWriteWrappedProcessed(HANDLE hCon, COORD sbSize)
c
.
X
=
0
;
c
.
Y
++
;
okCHAR
(
hCon
,
c
,
mytest
[
3
],
TEST_ATTRIB
);
c
.
X
++
;
okCHAR
(
hCon
,
c
,
' '
,
DEFAULT_ATTRIB
);
ReadConsoleOutputAttribute
(
hCon
,
&
attr
,
1
,
c
,
&
len
);
if
(
attr
==
TEST_ATTRIB
)
win_skip
(
"Win9x/WinMe changes attribs for '
\\
n' up to 'f'
\n
"
);
else
okCHAR
(
hCon
,
c
,
' '
,
DEFAULT_ATTRIB
);
c
.
X
=
0
;
c
.
Y
++
;
okCHAR
(
hCon
,
c
,
mytest
[
5
],
TEST_ATTRIB
);
...
...
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