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
6db63a18
Commit
6db63a18
authored
Jan 04, 2014
by
André Hentschel
Committed by
Alexandre Julliard
Jan 06, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Allow more last errors from win8.
parent
4ec00cb2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
38 deletions
+40
-38
console.c
dlls/kernel32/tests/console.c
+40
-38
No files found.
dlls/kernel32/tests/console.c
View file @
6db63a18
...
...
@@ -1375,7 +1375,7 @@ static void test_WriteConsoleInputA(HANDLE input_handle)
INPUT_RECORD
event_list
[
5
];
MOUSE_EVENT_RECORD
mouse_event
=
{
{
0
,
0
},
0
,
0
,
MOUSE_MOVED
};
KEY_EVENT_RECORD
key_event
;
DWORD
count
,
console_mode
;
DWORD
count
,
console_mode
,
gle
;
BOOL
ret
;
int
i
;
...
...
@@ -1386,31 +1386,31 @@ static void test_WriteConsoleInputA(HANDLE input_handle)
DWORD
count
;
LPDWORD
written
;
DWORD
expected_count
;
DWORD
last_error
;
DWORD
gle
,
gle2
;
int
win_crash
;
}
invalid_table
[]
=
{
{
NULL
,
NULL
,
0
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
NULL
,
0
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
0
,
1
},
{
NULL
,
NULL
,
0
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
NULL
,
NULL
,
1
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
NULL
,
1
,
&
count
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
},
{
NULL
,
&
event
,
0
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
NULL
,
1
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
0
,
1
},
{
NULL
,
NULL
,
1
,
&
count
,
0xdeadbeef
,
ERROR_
NOACCESS
,
ERROR_
INVALID_ACCESS
},
{
NULL
,
&
event
,
0
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
0
,
1
},
{
NULL
,
&
event
,
0
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
NULL
,
&
event
,
1
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
&
event
,
1
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
0
,
1
},
{
NULL
,
&
event
,
1
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
INVALID_HANDLE_VALUE
,
NULL
,
0
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
NULL
,
0
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
0
,
1
},
{
INVALID_HANDLE_VALUE
,
NULL
,
0
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
INVALID_HANDLE_VALUE
,
NULL
,
1
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
NULL
,
1
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
0
,
1
},
{
INVALID_HANDLE_VALUE
,
NULL
,
1
,
&
count
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
},
{
INVALID_HANDLE_VALUE
,
&
event
,
0
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
&
event
,
0
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
0
,
1
},
{
INVALID_HANDLE_VALUE
,
&
event
,
0
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
INVALID_HANDLE_VALUE
,
&
event
,
1
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
&
event
,
1
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
0
,
1
},
{
INVALID_HANDLE_VALUE
,
&
event
,
1
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
input_handle
,
NULL
,
0
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
input_handle
,
NULL
,
1
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
input_handle
,
NULL
,
1
,
&
count
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
},
{
input_handle
,
&
event
,
0
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
input_handle
,
&
event
,
1
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
input_handle
,
NULL
,
0
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
0
,
1
},
{
input_handle
,
NULL
,
1
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
0
,
1
},
{
input_handle
,
NULL
,
1
,
&
count
,
0xdeadbeef
,
ERROR_
NOACCESS
,
ERROR_
INVALID_ACCESS
},
{
input_handle
,
&
event
,
0
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
0
,
1
},
{
input_handle
,
&
event
,
1
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
0
,
1
},
};
/* Suppress external sources of input events for the duration of the test. */
...
...
@@ -1455,9 +1455,10 @@ static void test_WriteConsoleInputA(HANDLE input_handle)
"[%d] Expected output count to be %u, got %u
\n
"
,
i
,
invalid_table
[
i
].
expected_count
,
count
);
}
ok
(
GetLastError
()
==
invalid_table
[
i
].
last_error
,
"[%d] Expected last error to be %u, got %u
\n
"
,
i
,
invalid_table
[
i
].
last_error
,
GetLastError
());
gle
=
GetLastError
();
ok
(
gle
==
invalid_table
[
i
].
gle
||
(
gle
!=
0
&&
gle
==
invalid_table
[
i
].
gle2
),
"[%d] Expected last error to be %u or %u, got %u
\n
"
,
i
,
invalid_table
[
i
].
gle
,
invalid_table
[
i
].
gle2
,
gle
);
}
count
=
0xdeadbeef
;
...
...
@@ -1618,7 +1619,7 @@ static void test_WriteConsoleInputW(HANDLE input_handle)
INPUT_RECORD
event_list
[
5
];
MOUSE_EVENT_RECORD
mouse_event
=
{
{
0
,
0
},
0
,
0
,
MOUSE_MOVED
};
KEY_EVENT_RECORD
key_event
;
DWORD
count
,
console_mode
;
DWORD
count
,
console_mode
,
gle
;
BOOL
ret
;
int
i
;
...
...
@@ -1629,31 +1630,31 @@ static void test_WriteConsoleInputW(HANDLE input_handle)
DWORD
count
;
LPDWORD
written
;
DWORD
expected_count
;
DWORD
last_error
;
DWORD
gle
,
gle2
;
int
win_crash
;
}
invalid_table
[]
=
{
{
NULL
,
NULL
,
0
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
NULL
,
0
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
0
,
1
},
{
NULL
,
NULL
,
0
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
NULL
,
NULL
,
1
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
NULL
,
1
,
&
count
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
},
{
NULL
,
&
event
,
0
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
NULL
,
1
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
0
,
1
},
{
NULL
,
NULL
,
1
,
&
count
,
0xdeadbeef
,
ERROR_
NOACCESS
,
ERROR_
INVALID_ACCESS
},
{
NULL
,
&
event
,
0
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
0
,
1
},
{
NULL
,
&
event
,
0
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
NULL
,
&
event
,
1
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
&
event
,
1
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
0
,
1
},
{
NULL
,
&
event
,
1
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
INVALID_HANDLE_VALUE
,
NULL
,
0
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
NULL
,
0
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
0
,
1
},
{
INVALID_HANDLE_VALUE
,
NULL
,
0
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
INVALID_HANDLE_VALUE
,
NULL
,
1
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
NULL
,
1
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
0
,
1
},
{
INVALID_HANDLE_VALUE
,
NULL
,
1
,
&
count
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
},
{
INVALID_HANDLE_VALUE
,
&
event
,
0
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
&
event
,
0
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
0
,
1
},
{
INVALID_HANDLE_VALUE
,
&
event
,
0
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
INVALID_HANDLE_VALUE
,
&
event
,
1
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
&
event
,
1
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
0
,
1
},
{
INVALID_HANDLE_VALUE
,
&
event
,
1
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
input_handle
,
NULL
,
0
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
input_handle
,
NULL
,
1
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
input_handle
,
NULL
,
1
,
&
count
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
},
{
input_handle
,
&
event
,
0
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
input_handle
,
&
event
,
1
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
input_handle
,
NULL
,
0
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
0
,
1
},
{
input_handle
,
NULL
,
1
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
0
,
1
},
{
input_handle
,
NULL
,
1
,
&
count
,
0xdeadbeef
,
ERROR_
NOACCESS
,
ERROR_
INVALID_ACCESS
},
{
input_handle
,
&
event
,
0
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
0
,
1
},
{
input_handle
,
&
event
,
1
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
0
,
1
},
};
/* Suppress external sources of input events for the duration of the test. */
...
...
@@ -1698,9 +1699,10 @@ static void test_WriteConsoleInputW(HANDLE input_handle)
"[%d] Expected output count to be %u, got %u
\n
"
,
i
,
invalid_table
[
i
].
expected_count
,
count
);
}
ok
(
GetLastError
()
==
invalid_table
[
i
].
last_error
,
"[%d] Expected last error to be %u, got %u
\n
"
,
i
,
invalid_table
[
i
].
last_error
,
GetLastError
());
gle
=
GetLastError
();
ok
(
gle
==
invalid_table
[
i
].
gle
||
(
gle
!=
0
&&
gle
==
invalid_table
[
i
].
gle2
),
"[%d] Expected last error to be %u or %u, got %u
\n
"
,
i
,
invalid_table
[
i
].
gle
,
invalid_table
[
i
].
gle2
,
gle
);
}
count
=
0xdeadbeef
;
...
...
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