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
54752c4f
Commit
54752c4f
authored
Jul 29, 2008
by
Dan Hipschman
Committed by
Alexandre Julliard
Jul 30, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Add tests for undocumented default timer queue "features".
parent
a148e190
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
0 deletions
+41
-0
sync.c
dlls/kernel32/tests/sync.c
+41
-0
No files found.
dlls/kernel32/tests/sync.c
View file @
54752c4f
...
...
@@ -894,6 +894,47 @@ static void test_timer_queue(void)
ret
=
pDeleteTimerQueueTimer
(
NULL
,
t1
,
INVALID_HANDLE_VALUE
);
ok
(
ret
,
"DeleteTimerQueueTimer, default queue
\n
"
);
/* Try mixing default and non-default queues. Apparently this works. */
q
=
pCreateTimerQueue
();
ok
(
q
!=
NULL
,
"CreateTimerQueue
\n
"
);
t1
=
NULL
;
n1
=
0
;
ret
=
pCreateTimerQueueTimer
(
&
t1
,
q
,
timer_queue_cb1
,
&
n1
,
1000
,
1000
,
0
);
ok
(
ret
,
"CreateTimerQueueTimer
\n
"
);
ok
(
t1
!=
NULL
,
"CreateTimerQueueTimer
\n
"
);
t2
=
NULL
;
n2
=
0
;
ret
=
pCreateTimerQueueTimer
(
&
t2
,
NULL
,
timer_queue_cb1
,
&
n2
,
1000
,
1000
,
0
);
ok
(
ret
,
"CreateTimerQueueTimer
\n
"
);
ok
(
t2
!=
NULL
,
"CreateTimerQueueTimer
\n
"
);
ret
=
pChangeTimerQueueTimer
(
NULL
,
t1
,
2000
,
2000
);
ok
(
ret
,
"ChangeTimerQueueTimer
\n
"
);
ret
=
pChangeTimerQueueTimer
(
q
,
t2
,
2000
,
2000
);
ok
(
ret
,
"ChangeTimerQueueTimer
\n
"
);
ret
=
pDeleteTimerQueueTimer
(
NULL
,
t1
,
INVALID_HANDLE_VALUE
);
ok
(
ret
,
"DeleteTimerQueueTimer
\n
"
);
ret
=
pDeleteTimerQueueTimer
(
q
,
t2
,
INVALID_HANDLE_VALUE
);
ok
(
ret
,
"DeleteTimerQueueTimer
\n
"
);
/* Try to delete the default queue? In any case: not allowed. */
SetLastError
(
0xdeadbeef
);
ret
=
pDeleteTimerQueueEx
(
NULL
,
NULL
);
ok
(
!
ret
,
"DeleteTimerQueueEx
\n
"
);
ok
(
GetLastError
()
==
ERROR_INVALID_HANDLE
,
"DeleteTimerQueueEx
\n
"
);
SetLastError
(
0xdeadbeef
);
ret
=
pDeleteTimerQueueEx
(
q
,
NULL
);
ok
(
!
ret
,
"DeleteTimerQueueEx
\n
"
);
ok
(
GetLastError
()
==
ERROR_IO_PENDING
,
"DeleteTimerQueueEx
\n
"
);
}
START_TEST
(
sync
)
...
...
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