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
ba1f962d
Commit
ba1f962d
authored
Dec 28, 2010
by
André Hentschel
Committed by
Alexandre Julliard
Dec 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: Don't test function directly when reporting GetLastError().
parent
2774d404
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
8 deletions
+12
-8
directory.c
dlls/ntdll/tests/directory.c
+5
-4
exception.c
dlls/ntdll/tests/exception.c
+4
-2
file.c
dlls/ntdll/tests/file.c
+3
-2
No files found.
dlls/ntdll/tests/directory.c
View file @
ba1f962d
...
...
@@ -71,9 +71,10 @@ static const int max_test_dir_size = 20; /* size of above plus some for .. etc
static
void
set_up_attribute_test
(
const
char
*
testdirA
)
{
int
i
;
BOOL
ret
;
ok
(
CreateDirectoryA
(
testdirA
,
NULL
),
"couldn't create dir '%s', error %d
\n
"
,
testdirA
,
GetLastError
());
ret
=
CreateDirectoryA
(
testdirA
,
NULL
);
ok
(
ret
,
"couldn't create dir '%s', error %d
\n
"
,
testdirA
,
GetLastError
());
for
(
i
=
0
;
testfiles
[
i
].
name
;
i
++
)
{
char
buf
[
MAX_PATH
];
...
...
@@ -82,8 +83,8 @@ static void set_up_attribute_test(const char *testdirA)
sprintf
(
buf
,
"%s
\\
%s"
,
testdirA
,
testfiles
[
i
].
name
);
testfiles
[
i
].
nfound
=
0
;
if
(
testfiles
[
i
].
attr
&
FILE_ATTRIBUTE_DIRECTORY
)
{
ok
(
CreateDirectoryA
(
buf
,
NULL
),
"couldn't create dir '%s', error %d
\n
"
,
buf
,
GetLastError
());
ret
=
CreateDirectoryA
(
buf
,
NULL
);
ok
(
ret
,
"couldn't create dir '%s', error %d
\n
"
,
buf
,
GetLastError
());
}
else
{
HANDLE
h
=
CreateFileA
(
buf
,
GENERIC_READ
|
GENERIC_WRITE
,
...
...
dlls/ntdll/tests/exception.c
View file @
ba1f962d
...
...
@@ -828,8 +828,10 @@ static void test_debugger(void)
}
while
(
de
.
dwDebugEventCode
!=
EXIT_PROCESS_DEBUG_EVENT
);
winetest_wait_child_process
(
pi
.
hProcess
);
ok
(
CloseHandle
(
pi
.
hThread
)
!=
0
,
"error %u
\n
"
,
GetLastError
());
ok
(
CloseHandle
(
pi
.
hProcess
)
!=
0
,
"error %u
\n
"
,
GetLastError
());
ret
=
CloseHandle
(
pi
.
hThread
);
ok
(
ret
,
"error %u
\n
"
,
GetLastError
());
ret
=
CloseHandle
(
pi
.
hProcess
);
ok
(
ret
,
"error %u
\n
"
,
GetLastError
());
return
;
}
...
...
dlls/ntdll/tests/file.c
View file @
ba1f962d
...
...
@@ -456,6 +456,7 @@ static void read_file_test(void)
char
buffer
[
128
];
LARGE_INTEGER
offset
;
HANDLE
event
=
CreateEventA
(
NULL
,
TRUE
,
FALSE
,
NULL
);
BOOL
ret
;
buffer
[
0
]
=
1
;
...
...
@@ -599,8 +600,8 @@ static void read_file_test(void)
CloseHandle
(
read
);
if
(
!
create_pipe
(
&
read
,
&
write
,
FILE_FLAG_OVERLAPPED
,
4096
))
return
;
ok
(
DuplicateHandle
(
GetCurrentProcess
(),
read
,
GetCurrentProcess
(),
&
handle
,
0
,
TRUE
,
DUPLICATE_SAME_ACCESS
),
"Failed to duplicate handle: %d
\n
"
,
GetLastError
());
ret
=
DuplicateHandle
(
GetCurrentProcess
(),
read
,
GetCurrentProcess
(),
&
handle
,
0
,
TRUE
,
DUPLICATE_SAME_ACCESS
);
ok
(
ret
,
"Failed to duplicate handle: %d
\n
"
,
GetLastError
());
apc_count
=
0
;
U
(
iosb
).
Status
=
0xdeadbabe
;
...
...
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