Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
e613992c
Commit
e613992c
authored
Jul 19, 2022
by
Jinoh Kang
Committed by
Alexandre Julliard
Jul 18, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Test deletion of synchronization objects after handle close.
parent
60a84d0e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
0 deletions
+46
-0
sync.c
dlls/kernel32/tests/sync.c
+46
-0
No files found.
dlls/kernel32/tests/sync.c
View file @
e613992c
...
...
@@ -182,6 +182,51 @@ static void test_signalandwait(void)
CloseHandle
(
file
);
}
static
void
test_temporary_objects
(
void
)
{
HANDLE
handle
;
SetLastError
(
0xdeadbeef
);
handle
=
CreateMutexA
(
NULL
,
FALSE
,
"WineTestMutex2"
);
ok
(
handle
!=
NULL
,
"CreateMutex failed with error %ld
\n
"
,
GetLastError
());
CloseHandle
(
handle
);
SetLastError
(
0xdeadbeef
);
handle
=
OpenMutexA
(
READ_CONTROL
,
FALSE
,
"WineTestMutex2"
);
ok
(
!
handle
,
"OpenMutex succeeded
\n
"
);
ok
(
GetLastError
()
==
ERROR_FILE_NOT_FOUND
,
"wrong error %lu
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
handle
=
CreateSemaphoreA
(
NULL
,
0
,
1
,
"WineTestSemaphore2"
);
ok
(
handle
!=
NULL
,
"CreateSemaphore failed with error %ld
\n
"
,
GetLastError
());
CloseHandle
(
handle
);
SetLastError
(
0xdeadbeef
);
handle
=
OpenSemaphoreA
(
READ_CONTROL
,
FALSE
,
"WineTestSemaphore2"
);
ok
(
!
handle
,
"OpenSemaphore succeeded
\n
"
);
ok
(
GetLastError
()
==
ERROR_FILE_NOT_FOUND
,
"wrong error %lu
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
handle
=
CreateEventA
(
NULL
,
FALSE
,
FALSE
,
"WineTestEvent2"
);
ok
(
handle
!=
NULL
,
"CreateEvent failed with error %ld
\n
"
,
GetLastError
());
CloseHandle
(
handle
);
SetLastError
(
0xdeadbeef
);
handle
=
OpenEventA
(
READ_CONTROL
,
FALSE
,
"WineTestEvent2"
);
ok
(
!
handle
,
"OpenEvent succeeded
\n
"
);
ok
(
GetLastError
()
==
ERROR_FILE_NOT_FOUND
,
"wrong error %lu
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
handle
=
CreateWaitableTimerA
(
NULL
,
FALSE
,
"WineTestWaitableTimer2"
);
ok
(
handle
!=
NULL
,
"CreateWaitableTimer failed with error %ld
\n
"
,
GetLastError
());
CloseHandle
(
handle
);
SetLastError
(
0xdeadbeef
);
handle
=
OpenWaitableTimerA
(
READ_CONTROL
,
FALSE
,
"WineTestWaitableTimer2"
);
ok
(
!
handle
,
"OpenWaitableTimer succeeded
\n
"
);
ok
(
GetLastError
()
==
ERROR_FILE_NOT_FOUND
,
"wrong error %lu
\n
"
,
GetLastError
());
}
static
void
test_mutex
(
void
)
{
DWORD
wait_ret
;
...
...
@@ -2825,6 +2870,7 @@ START_TEST(sync)
test_QueueUserAPC
();
test_signalandwait
();
test_temporary_objects
();
test_mutex
();
test_slist
();
test_event
();
...
...
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