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
b825b8ba
Commit
b825b8ba
authored
Jan 25, 2006
by
Hans Leidekker
Committed by
Alexandre Julliard
Jan 25, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel: Test moving a directory that has a change notification
registered for itself.
parent
538cd178
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
change.c
dlls/kernel/tests/change.c
+11
-5
No files found.
dlls/kernel/tests/change.c
View file @
b825b8ba
...
...
@@ -136,12 +136,21 @@ static void test_FindFirstChangeNotification(void)
lstrcpyA
(
dirname1
,
filename1
);
lstrcatA
(
dirname1
,
"dir"
);
lstrcpyA
(
dirname2
,
dirname1
);
lstrcatA
(
dirname2
,
"new"
);
ret
=
CreateDirectoryA
(
dirname1
,
NULL
);
ok
(
ret
,
"CreateDirectoryA error: %ld
\n
"
,
GetLastError
());
/* What if we
re
move the directory we registered notification for? */
/* What if we move the directory we registered notification for? */
thread
=
StartNotificationThread
(
dirname1
,
FALSE
,
FILE_NOTIFY_CHANGE_DIR_NAME
);
ret
=
RemoveDirectoryA
(
dirname1
);
ret
=
MoveFileA
(
dirname1
,
dirname2
);
ok
(
ret
,
"MoveFileA error: %ld
\n
"
,
GetLastError
());
ok
(
FinishNotificationThread
(
thread
),
"Missed notification
\n
"
);
/* What if we remove the directory we registered notification for? */
thread
=
StartNotificationThread
(
dirname2
,
FALSE
,
FILE_NOTIFY_CHANGE_DIR_NAME
);
ret
=
RemoveDirectoryA
(
dirname2
);
ok
(
ret
,
"RemoveDirectoryA error: %ld
\n
"
,
GetLastError
());
/* win98 and win2k behave differently here */
...
...
@@ -156,9 +165,6 @@ static void test_FindFirstChangeNotification(void)
ok
(
ret
,
"CreateDirectoryA error: %ld
\n
"
,
GetLastError
());
ok
(
FinishNotificationThread
(
thread
),
"Missed notification
\n
"
);
lstrcpyA
(
dirname2
,
dirname1
);
lstrcatA
(
dirname2
,
"new"
);
/* Rename a directory */
thread
=
StartNotificationThread
(
workdir
,
FALSE
,
FILE_NOTIFY_CHANGE_DIR_NAME
);
ret
=
MoveFileA
(
dirname1
,
dirname2
);
...
...
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