Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
FORMUS3IC_LAS3
/
embb
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
36054ae2
authored
Mar 12, 2015
by
Marcus Winter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mtapi_c: removed cpplint warnings
parent
05ec2f80
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
mtapi_c/test/embb_mtapi_test_task.cc
+9
-10
No files found.
mtapi_c/test/embb_mtapi_test_task.cc
View file @
36054ae2
...
...
@@ -63,8 +63,7 @@ void testMultiInstanceTaskAction(
mtapi_size_t
result_buffer_size
,
const
void
*
node_local_data
,
mtapi_size_t
node_local_data_size
,
mtapi_task_context_t
*
task_context
)
{
mtapi_task_context_t
*
task_context
)
{
EMBB_UNUSED
(
args
);
EMBB_UNUSED
(
arg_size
);
...
...
@@ -80,7 +79,7 @@ void testMultiInstanceTaskAction(
/* check result buffer size... */
if
(
result_buffer_size
==
sizeof
(
int
)
*
num_instances
)
{
/* ... and cast the result buffer */
result
=
(
mtapi_uint_t
*
)
result_buffer
;
result
=
reinterpret_cast
<
mtapi_uint_t
*>
(
result_buffer
)
;
}
else
{
mtapi_context_status_set
(
task_context
,
MTAPI_ERR_RESULT_SIZE
,
&
status
);
MTAPI_CHECK_STATUS
(
status
);
...
...
@@ -219,24 +218,24 @@ void TaskTest::TestBasic() {
mtapi_taskattr_init
(
&
task_attr
,
&
status
);
MTAPI_CHECK_STATUS
(
status
);
const
int
task_i
nstances
=
5
;
const
int
kTaskI
nstances
=
5
;
status
=
MTAPI_ERR_UNKNOWN
;
mtapi_taskattr_set
(
&
task_attr
,
MTAPI_TASK_INSTANCES
,
MTAPI_ATTRIBUTE_VALUE
(
task_i
nstances
),
MTAPI_ATTRIBUTE_POINTER_AS_VALUE
,
MTAPI_ATTRIBUTE_VALUE
(
kTaskI
nstances
),
MTAPI_ATTRIBUTE_POINTER_AS_VALUE
,
&
status
);
MTAPI_CHECK_STATUS
(
status
);
mtapi_uint_t
result
[
task_i
nstances
];
for
(
mtapi_uint_t
ii
=
0
;
ii
<
task_i
nstances
;
ii
++
)
{
result
[
ii
]
=
task_i
nstances
+
1
;
mtapi_uint_t
result
[
kTaskI
nstances
];
for
(
mtapi_uint_t
ii
=
0
;
ii
<
kTaskI
nstances
;
ii
++
)
{
result
[
ii
]
=
kTaskI
nstances
+
1
;
}
status
=
MTAPI_ERR_UNKNOWN
;
mtapi_task_hndl_t
multiinstance_task
=
mtapi_task_start
(
MTAPI_TASK_ID_NONE
,
multiinstance_job
,
MTAPI_NULL
,
0
,
&
result
[
0
],
sizeof
(
mtapi_uint_t
)
*
task_i
nstances
,
&
result
[
0
],
sizeof
(
mtapi_uint_t
)
*
kTaskI
nstances
,
&
task_attr
,
MTAPI_GROUP_NONE
,
&
status
);
...
...
@@ -246,7 +245,7 @@ void TaskTest::TestBasic() {
mtapi_task_wait
(
multiinstance_task
,
MTAPI_INFINITE
,
&
status
);
MTAPI_CHECK_STATUS
(
status
);
for
(
mtapi_uint_t
ii
=
0
;
ii
<
task_i
nstances
;
ii
++
)
{
for
(
mtapi_uint_t
ii
=
0
;
ii
<
kTaskI
nstances
;
ii
++
)
{
PT_EXPECT_EQ
(
result
[
ii
],
ii
);
}
...
...
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