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
67568764
Commit
67568764
authored
Jan 08, 2007
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jan 08, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Print more information about the reason of a test failure.
parent
1e7ba7c2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
file.c
dlls/kernel32/tests/file.c
+11
-8
No files found.
dlls/kernel32/tests/file.c
View file @
67568764
...
...
@@ -1745,47 +1745,50 @@ static void test_overlapped(void)
result
=
1
;
r
=
GetOverlappedResult
(
0
,
&
ov
,
&
result
,
0
);
ok
(
r
==
TRUE
,
"should return false
\n
"
);
ok
(
result
==
0
,
"
result wrong
\n
"
);
ok
(
result
==
0
,
"
wrong result %u
\n
"
,
result
);
result
=
0
;
ov
.
Internal
=
0
;
ov
.
InternalHigh
=
0xabcd
;
r
=
GetOverlappedResult
(
0
,
&
ov
,
&
result
,
0
);
ok
(
r
==
TRUE
,
"should return false
\n
"
);
ok
(
result
==
0xabcd
,
"
result wrong
\n
"
);
ok
(
result
==
0xabcd
,
"
wrong result %u
\n
"
,
result
);
SetLastError
(
0xb00
);
result
=
0
;
ov
.
Internal
=
STATUS_INVALID_HANDLE
;
ov
.
InternalHigh
=
0xabcd
;
r
=
GetOverlappedResult
(
0
,
&
ov
,
&
result
,
0
);
ok
(
GetLastError
()
==
ERROR_INVALID_HANDLE
,
"error wrong
\n
"
);
ok
(
GetLastError
()
==
ERROR_INVALID_HANDLE
,
"wrong error %u
\n
"
,
GetLastError
()
);
ok
(
r
==
FALSE
,
"should return false
\n
"
);
ok
(
result
==
0xabcd
,
"
result wrong
\n
"
);
ok
(
result
==
0xabcd
,
"
wrong result %u
\n
"
,
result
);
SetLastError
(
0xb00
);
result
=
0
;
ov
.
Internal
=
STATUS_PENDING
;
ov
.
InternalHigh
=
0xabcd
;
r
=
GetOverlappedResult
(
0
,
&
ov
,
&
result
,
0
);
todo_wine
{
ok
(
GetLastError
()
==
ERROR_IO_INCOMPLETE
,
"error wrong
\n
"
);
ok
(
GetLastError
()
==
ERROR_IO_INCOMPLETE
,
"wrong error %u
\n
"
,
GetLastError
()
);
}
ok
(
r
==
FALSE
,
"should return false
\n
"
);
ok
(
result
==
0
,
"
result wrong
\n
"
);
ok
(
result
==
0
,
"
wrong result %u
\n
"
,
result
);
SetLastError
(
0xb00
);
ov
.
hEvent
=
CreateEvent
(
NULL
,
1
,
1
,
NULL
);
ov
.
Internal
=
STATUS_PENDING
;
ov
.
InternalHigh
=
0xabcd
;
r
=
GetOverlappedResult
(
0
,
&
ov
,
&
result
,
0
);
ok
(
GetLastError
()
==
ERROR_IO_INCOMPLETE
,
"error wrong
\n
"
);
ok
(
GetLastError
()
==
ERROR_IO_INCOMPLETE
,
"wrong error %u
\n
"
,
GetLastError
()
);
ok
(
r
==
FALSE
,
"should return false
\n
"
);
ResetEvent
(
ov
.
hEvent
);
SetLastError
(
0xb00
);
ov
.
Internal
=
STATUS_PENDING
;
ov
.
InternalHigh
=
0
;
r
=
GetOverlappedResult
(
0
,
&
ov
,
&
result
,
0
);
ok
(
GetLastError
()
==
ERROR_IO_INCOMPLETE
,
"error wrong
\n
"
);
ok
(
GetLastError
()
==
ERROR_IO_INCOMPLETE
,
"wrong error %u
\n
"
,
GetLastError
()
);
ok
(
r
==
FALSE
,
"should return false
\n
"
);
r
=
CloseHandle
(
ov
.
hEvent
);
...
...
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