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
ac5885ef
Commit
ac5885ef
authored
Jun 29, 2008
by
James Hawkins
Committed by
Alexandre Julliard
Jun 30, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Fix a few test failures in win9x.
parent
3361f0c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
sync.c
dlls/kernel32/tests/sync.c
+12
-4
No files found.
dlls/kernel32/tests/sync.c
View file @
ac5885ef
...
...
@@ -156,12 +156,16 @@ static void test_mutex(void)
SetLastError
(
0xdeadbeef
);
hOpened
=
OpenMutex
(
READ_CONTROL
,
FALSE
,
"WINETESTMUTEX"
);
ok
(
!
hOpened
,
"OpenMutex succeeded
\n
"
);
ok
(
GetLastError
()
==
ERROR_FILE_NOT_FOUND
,
"wrong error %u
\n
"
,
GetLastError
());
ok
(
GetLastError
()
==
ERROR_FILE_NOT_FOUND
||
GetLastError
()
==
ERROR_INVALID_NAME
,
/* win9x */
"wrong error %u
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
hOpened
=
OpenMutex
(
READ_CONTROL
,
FALSE
,
"winetestmutex"
);
ok
(
!
hOpened
,
"OpenMutex succeeded
\n
"
);
ok
(
GetLastError
()
==
ERROR_FILE_NOT_FOUND
,
"wrong error %u
\n
"
,
GetLastError
());
ok
(
GetLastError
()
==
ERROR_FILE_NOT_FOUND
||
GetLastError
()
==
ERROR_INVALID_NAME
,
/* win9x */
"wrong error %u
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
hOpened
=
CreateMutex
(
NULL
,
FALSE
,
"WineTestMutex"
);
...
...
@@ -334,7 +338,9 @@ static void test_event(void)
SetLastError
(
0xdeadbeef
);
handle2
=
OpenEventA
(
EVENT_ALL_ACCESS
,
FALSE
,
__FILE__
": TEST EVENT"
);
ok
(
!
handle2
,
"OpenEvent succeeded
\n
"
);
ok
(
GetLastError
()
==
ERROR_FILE_NOT_FOUND
,
"wrong error %u
\n
"
,
GetLastError
());
ok
(
GetLastError
()
==
ERROR_FILE_NOT_FOUND
||
GetLastError
()
==
ERROR_INVALID_NAME
,
/* win9x */
"wrong error %u
\n
"
,
GetLastError
());
CloseHandle
(
handle
);
}
...
...
@@ -370,7 +376,9 @@ static void test_semaphore(void)
SetLastError
(
0xdeadbeef
);
handle2
=
OpenSemaphoreA
(
SEMAPHORE_ALL_ACCESS
,
FALSE
,
__FILE__
": TEST SEMAPHORE"
);
ok
(
!
handle2
,
"OpenSemaphore succeeded
\n
"
);
ok
(
GetLastError
()
==
ERROR_FILE_NOT_FOUND
,
"wrong error %u
\n
"
,
GetLastError
());
ok
(
GetLastError
()
==
ERROR_FILE_NOT_FOUND
||
GetLastError
()
==
ERROR_INVALID_NAME
,
/* win9x */
"wrong error %u
\n
"
,
GetLastError
());
CloseHandle
(
handle
);
}
...
...
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