Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
maestro-core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
maestro
maestro-core
Commits
aea62418
Commit
aea62418
authored
4 years ago
by
Ali Mohammed
Browse files
Options
Downloads
Patches
Plain Diff
make cdo size always int64_t in all tests
parent
b1fc342c
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
tests/check_declaration_seal.c
+2
-2
2 additions, 2 deletions
tests/check_declaration_seal.c
tests/check_pool_mamba.c
+10
-13
10 additions, 13 deletions
tests/check_pool_mamba.c
tests/check_transport_mio.c
+26
-29
26 additions, 29 deletions
tests/check_transport_mio.c
with
38 additions
and
44 deletions
tests/check_declaration_seal.c
+
2
−
2
View file @
aea62418
...
@@ -61,7 +61,7 @@ CHEAT_TEST(cdo_declaration_seal_works,
...
@@ -61,7 +61,7 @@ CHEAT_TEST(cdo_declaration_seal_works,
mstro_cdo
cdo
=
NULL
;
mstro_cdo
cdo
=
NULL
;
enum
mstro_cdo_attr_value_type
type
;
enum
mstro_cdo_attr_value_type
type
;
const
void
*
val
;
const
void
*
val
;
u
int64_t
size
;
int64_t
size
;
size
=
16000
;
size
=
16000
;
cheat_assert
(
MSTRO_OK
cheat_assert
(
MSTRO_OK
==
mstro_cdo_declare
(
==
mstro_cdo_declare
(
...
...
This diff is collapsed.
Click to expand it.
tests/check_pool_mamba.c
+
10
−
13
View file @
aea62418
...
@@ -50,7 +50,7 @@ CHEAT_TEST(cdo_local_pool_mamba_works,
...
@@ -50,7 +50,7 @@ CHEAT_TEST(cdo_local_pool_mamba_works,
char
name
[]
=
"Test CDO name üÜöÖäÄ"
;
char
name
[]
=
"Test CDO name üÜöÖäÄ"
;
mstro_cdo
cdo
=
NULL
;
mstro_cdo
cdo
=
NULL
;
cheat_assert
(
MSTRO_OK
==
mstro_cdo_declare
(
name
,
MSTRO_ATTR_DEFAULT
,
&
cdo
));
cheat_assert
(
MSTRO_OK
==
mstro_cdo_declare
(
name
,
MSTRO_ATTR_DEFAULT
,
&
cdo
));
u
int64_t
size
=
4096
;
int64_t
size
=
4096
;
enum
mstro_cdo_attr_value_type
type
;
enum
mstro_cdo_attr_value_type
type
;
float
*
buf
;
float
*
buf
;
void
*
rec
;
void
*
rec
;
...
@@ -114,6 +114,3 @@ CHEAT_TEST(cdo_local_pool_mamba_works,
...
@@ -114,6 +114,3 @@ CHEAT_TEST(cdo_local_pool_mamba_works,
cheat_assert
(
MSTRO_OK
==
mstro_finalize
());
cheat_assert
(
MSTRO_OK
==
mstro_finalize
());
free
(
buf
);
free
(
buf
);
)
)
This diff is collapsed.
Click to expand it.
tests/check_transport_mio.c
+
26
−
29
View file @
aea62418
...
@@ -70,7 +70,7 @@ CHEAT_DECLARE (
...
@@ -70,7 +70,7 @@ CHEAT_DECLARE (
/* this tests MIO transport by using this single thread as both Producer and Consumer */
/* this tests MIO transport by using this single thread as both Producer and Consumer */
CHEAT_TEST
(
transport_mio_works
,
CHEAT_TEST
(
transport_mio_works
,
size_t
data_count
=
1031
;
size_t
data_count
=
1031
;
size
_t
bytes
=
data_count
*
sizeof
(
double
);
int64
_t
bytes
=
data_count
*
sizeof
(
double
);
size_t
pad
=
0
;
size_t
pad
=
0
;
double
src_data
[
data_count
];
double
src_data
[
data_count
];
for
(
size_t
i
=
0
;
i
<
data_count
;
i
++
)
{
for
(
size_t
i
=
0
;
i
<
data_count
;
i
++
)
{
...
@@ -217,6 +217,3 @@ CHEAT_DECLARE (
...
@@ -217,6 +217,3 @@ CHEAT_DECLARE (
cheat_assert
(
MSTRO_OK
==
mstro_finalize
());
cheat_assert
(
MSTRO_OK
==
mstro_finalize
());
)
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment