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
340a4c21
Commit
340a4c21
authored
Feb 07, 2011
by
Austin English
Committed by
Alexandre Julliard
Feb 08, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mstask/tests: Make sure return values are used (LLVM/Clang).
parent
f640a386
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
task_trigger.c
dlls/mstask/tests/task_trigger.c
+5
-0
No files found.
dlls/mstask/tests/task_trigger.c
View file @
340a4c21
...
...
@@ -224,6 +224,7 @@ static void test_SetTrigger_GetTrigger(void)
memset
(
&
trigger_state
,
0xcf
,
sizeof
(
trigger_state
));
trigger_state
.
cbTriggerSize
=
sizeof
(
trigger_state
);
hres
=
ITaskTrigger_GetTrigger
(
test_trigger
,
&
trigger_state
);
ok
(
hres
==
S_OK
,
"Expected S_OK: 0x%08x
\n
"
,
hres
);
ok
(
trigger_state
.
Reserved1
==
0
&&
trigger_state
.
Reserved2
==
0
,
"Reserved fields should be set to zero
\n
"
);
normal_trigger_state
.
Reserved1
=
0
;
...
...
@@ -261,6 +262,7 @@ static void test_SetTrigger_GetTrigger(void)
memset
(
&
trigger_state
,
0xcf
,
sizeof
(
trigger_state
));
trigger_state
.
cbTriggerSize
=
sizeof
(
trigger_state
);
hres
=
ITaskTrigger_GetTrigger
(
test_trigger
,
&
trigger_state
);
ok
(
hres
==
S_OK
,
"Expected S_OK: 0x%08x
\n
"
,
hres
);
ok
(
trigger_state
.
wEndYear
==
0
,
"End year should be 0: %d
\n
"
,
trigger_state
.
wEndYear
);
ok
(
trigger_state
.
wEndMonth
==
200
,
"End month should be 200: %d
\n
"
,
...
...
@@ -328,6 +330,7 @@ static void test_SetTrigger_GetTrigger(void)
memset
(
&
trigger_state
,
0xcf
,
sizeof
(
trigger_state
));
trigger_state
.
cbTriggerSize
=
sizeof
(
trigger_state
);
hres
=
ITaskTrigger_GetTrigger
(
test_trigger
,
&
trigger_state
);
ok
(
hres
==
S_OK
,
"Expected S_OK: 0x%08x
\n
"
,
hres
);
ok
(
trigger_state
.
Type
.
Weekly
.
WeeksInterval
==
0xcfcf
,
"Expected WeeksInterval set remain untouched: %d
\n
"
,
trigger_state
.
Type
.
Weekly
.
WeeksInterval
);
...
...
@@ -337,6 +340,7 @@ static void test_SetTrigger_GetTrigger(void)
normal_trigger_state
.
TriggerType
=
TASK_TIME_TRIGGER_DAILY
;
normal_trigger_state
.
Type
.
Daily
.
DaysInterval
=
1
;
hres
=
ITaskTrigger_SetTrigger
(
test_trigger
,
&
normal_trigger_state
);
ok
(
hres
==
S_OK
,
"Expected S_OK: 0x%08x
\n
"
,
hres
);
/* Test setting trigger with set wRandomMinutesInterval */
normal_trigger_state
.
wRandomMinutesInterval
=
5
;
...
...
@@ -345,6 +349,7 @@ static void test_SetTrigger_GetTrigger(void)
memset
(
&
trigger_state
,
0xcf
,
sizeof
(
trigger_state
));
trigger_state
.
cbTriggerSize
=
sizeof
(
trigger_state
);
hres
=
ITaskTrigger_GetTrigger
(
test_trigger
,
&
trigger_state
);
ok
(
hres
==
S_OK
,
"Expected S_OK: 0x%08x
\n
"
,
hres
);
ok
(
trigger_state
.
wRandomMinutesInterval
==
0
,
"wRandomMinutesInterval should be set to zero
\n
"
);
normal_trigger_state
.
wRandomMinutesInterval
=
0
;
...
...
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