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
a803c496
Commit
a803c496
authored
Dec 21, 2013
by
André Hentschel
Committed by
Alexandre Julliard
Dec 26, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Accept more win8 return values.
parent
5a6d38c2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
console.c
dlls/kernel32/tests/console.c
+6
-6
No files found.
dlls/kernel32/tests/console.c
View file @
a803c496
...
...
@@ -1025,7 +1025,8 @@ static void test_OpenCON(void)
for
(
i
=
0
;
i
<
sizeof
(
accesses
)
/
sizeof
(
accesses
[
0
]);
i
++
)
{
h
=
CreateFileW
(
conW
,
GENERIC_WRITE
,
0
,
NULL
,
accesses
[
i
],
0
,
NULL
);
ok
(
h
!=
INVALID_HANDLE_VALUE
,
"Expected to open the CON device on write (%x)
\n
"
,
accesses
[
i
]);
ok
(
h
!=
INVALID_HANDLE_VALUE
||
broken
(
accesses
[
i
]
==
TRUNCATE_EXISTING
/* Win8 */
),
"Expected to open the CON device on write (%x)
\n
"
,
accesses
[
i
]);
CloseHandle
(
h
);
h
=
CreateFileW
(
conW
,
GENERIC_READ
,
0
,
NULL
,
accesses
[
i
],
0
,
NULL
);
...
...
@@ -1034,14 +1035,13 @@ static void test_OpenCON(void)
* NT, XP, Vista comply, but Win7 doesn't and allows opening CON with TRUNCATE_EXISTING
* So don't test when disposition is TRUNCATE_EXISTING
*/
if
(
accesses
[
i
]
!=
TRUNCATE_EXISTING
)
{
ok
(
h
!=
INVALID_HANDLE_VALUE
,
"Expected to open the CON device on read (%x)
\n
"
,
accesses
[
i
]);
}
ok
(
h
!=
INVALID_HANDLE_VALUE
||
broken
(
accesses
[
i
]
==
TRUNCATE_EXISTING
/* Win7+ */
),
"Expected to open the CON device on read (%x)
\n
"
,
accesses
[
i
]);
CloseHandle
(
h
);
h
=
CreateFileW
(
conW
,
GENERIC_READ
|
GENERIC_WRITE
,
0
,
NULL
,
accesses
[
i
],
0
,
NULL
);
ok
(
h
==
INVALID_HANDLE_VALUE
,
"Expected not to open the CON device on read-write (%x)
\n
"
,
accesses
[
i
]);
ok
(
GetLastError
()
==
ERROR_FILE_NOT_FOUND
,
"Unexpected error %x
\n
"
,
GetLastError
());
ok
(
GetLastError
()
==
ERROR_FILE_NOT_FOUND
||
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"Unexpected error %x
\n
"
,
GetLastError
());
}
}
...
...
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