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
603822ca
Commit
603822ca
authored
Apr 20, 2008
by
James Hawkins
Committed by
Alexandre Julliard
Apr 21, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Fix two tests that fail in win9x.
parent
99949cb2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
change.c
dlls/kernel32/tests/change.c
+7
-7
No files found.
dlls/kernel32/tests/change.c
View file @
603822ca
...
...
@@ -98,7 +98,9 @@ static void test_FindFirstChangeNotification(void)
/* pathetic checks */
change
=
FindFirstChangeNotificationA
(
"not-a-file"
,
FALSE
,
FILE_NOTIFY_CHANGE_FILE_NAME
);
ok
(
change
==
INVALID_HANDLE_VALUE
&&
GetLastError
()
==
ERROR_FILE_NOT_FOUND
,
ok
(
change
==
INVALID_HANDLE_VALUE
,
"Expected INVALID_HANDLE_VALUE, got %p
\n
"
,
change
);
ok
(
GetLastError
()
==
ERROR_FILE_NOT_FOUND
||
GetLastError
()
==
ERROR_NO_MORE_FILES
,
/* win95 */
"FindFirstChangeNotification error: %d
\n
"
,
GetLastError
());
if
(
0
)
/* This documents win2k behavior. It crashes on win98. */
...
...
@@ -152,17 +154,15 @@ static void test_FindFirstChangeNotification(void)
thread
=
StartNotificationThread
(
dirname1
,
FALSE
,
FILE_NOTIFY_CHANGE_DIR_NAME
);
ret
=
MoveFileA
(
dirname1
,
dirname2
);
ok
(
ret
,
"MoveFileA error: %d
\n
"
,
GetLastError
());
ret
=
FinishNotificationThread
(
thread
);
ok
(
!
ret
,
"Unexpected notification
\n
"
);
/* win9x and win2k behave differently here, don't check result */
FinishNotificationThread
(
thread
);
/* 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: %d
\n
"
,
GetLastError
());
/* win98 and win2k behave differently here */
ret
=
FinishNotificationThread
(
thread
);
ok
(
ret
||
!
ret
,
"You'll never read this
\n
"
);
/* win9x and win2k behave differently here, don't check result */
FinishNotificationThread
(
thread
);
/* functional checks */
...
...
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