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
13c2f474
Commit
13c2f474
authored
Mar 20, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel: Avoid infinite waits in directory change tests.
parent
bb370f35
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
change.c
dlls/kernel/tests/change.c
+7
-7
No files found.
dlls/kernel/tests/change.c
View file @
13c2f474
...
...
@@ -409,7 +409,7 @@ static void test_readdirectorychanges(void)
r
=
CreateDirectoryW
(
subdir
,
NULL
);
ok
(
r
==
TRUE
,
"failed to create directory
\n
"
);
r
=
WaitForSingleObject
(
ov
.
hEvent
,
INFINITE
);
r
=
WaitForSingleObject
(
ov
.
hEvent
,
1000
);
ok
(
r
==
WAIT_OBJECT_0
,
"event should be ready
\n
"
);
ok
(
ov
.
Internal
==
STATUS_SUCCESS
,
"ov.Internal wrong
\n
"
);
...
...
@@ -451,7 +451,7 @@ static void test_readdirectorychanges(void)
r
=
RemoveDirectoryW
(
subdir
);
ok
(
r
==
TRUE
,
"failed to remove directory
\n
"
);
r
=
WaitForSingleObject
(
ov
.
hEvent
,
INFINITE
);
r
=
WaitForSingleObject
(
ov
.
hEvent
,
1000
);
ok
(
r
==
WAIT_OBJECT_0
,
"should be ready
\n
"
);
ok
(
ov
.
Internal
==
STATUS_SUCCESS
,
"ov.Internal wrong
\n
"
);
...
...
@@ -474,7 +474,7 @@ static void test_readdirectorychanges(void)
r
=
CreateDirectoryW
(
subdir
,
NULL
);
ok
(
r
==
TRUE
,
"failed to create directory
\n
"
);
r
=
WaitForSingleObject
(
ov
.
hEvent
,
INFINITE
);
r
=
WaitForSingleObject
(
ov
.
hEvent
,
1000
);
ok
(
r
==
WAIT_OBJECT_0
,
"should be ready
\n
"
);
ok
(
ov
.
Internal
==
STATUS_NOTIFY_ENUM_DIR
,
"ov.Internal wrong
\n
"
);
...
...
@@ -487,7 +487,7 @@ static void test_readdirectorychanges(void)
r
=
CreateDirectoryW
(
subsubdir
,
NULL
);
ok
(
r
==
TRUE
,
"failed to create directory
\n
"
);
r
=
WaitForSingleObject
(
ov
.
hEvent
,
INFINITE
);
r
=
WaitForSingleObject
(
ov
.
hEvent
,
1000
);
ok
(
r
==
WAIT_OBJECT_0
,
"should be ready
\n
"
);
ok
(
ov
.
Internal
==
STATUS_SUCCESS
,
"ov.Internal wrong
\n
"
);
...
...
@@ -510,7 +510,7 @@ static void test_readdirectorychanges(void)
r
=
RemoveDirectoryW
(
subdir
);
ok
(
r
==
TRUE
,
"failed to remove directory
\n
"
);
r
=
WaitForSingleObject
(
ov
.
hEvent
,
INFINITE
);
r
=
WaitForSingleObject
(
ov
.
hEvent
,
1000
);
ok
(
r
==
WAIT_OBJECT_0
,
"should be ready
\n
"
);
pfni
=
(
PFILE_NOTIFY_INFORMATION
)
buffer
;
...
...
@@ -605,7 +605,7 @@ static void test_readdirectorychanges_null(void)
r
=
RemoveDirectoryW
(
subdir
);
ok
(
r
==
TRUE
,
"failed to remove directory
\n
"
);
r
=
WaitForSingleObject
(
ov
.
hEvent
,
INFINITE
);
r
=
WaitForSingleObject
(
ov
.
hEvent
,
1000
);
ok
(
r
==
WAIT_OBJECT_0
,
"should be ready
\n
"
);
ok
(
ov
.
Internal
==
STATUS_NOTIFY_ENUM_DIR
,
"ov.Internal wrong
\n
"
);
...
...
@@ -675,7 +675,7 @@ static void test_readdirectorychanges_filedir(void)
ok
(
hfile
!=
INVALID_HANDLE_VALUE
,
"failed to create file
\n
"
);
ok
(
CloseHandle
(
hfile
),
"failed toc lose file
\n
"
);
r
=
WaitForSingleObject
(
ov
.
hEvent
,
INFINITE
);
r
=
WaitForSingleObject
(
ov
.
hEvent
,
1000
);
ok
(
r
==
WAIT_OBJECT_0
,
"event should be ready
\n
"
);
ok
(
ov
.
Internal
==
STATUS_SUCCESS
,
"ov.Internal wrong
\n
"
);
...
...
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