Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
asn1c
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
asn1c
Commits
d346ffd8
Commit
d346ffd8
authored
Oct 19, 2017
by
Vasil Velichkov
Committed by
Lev Walkin
Oct 18, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initialize _asn_ctx in the tests
parent
72b10447
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
tests/tests-skeletons/check-GeneralizedTime.c
tests/tests-skeletons/check-GeneralizedTime.c
+2
-2
tests/tests-skeletons/check-UTCTime.c
tests/tests-skeletons/check-UTCTime.c
+2
-2
No files found.
tests/tests-skeletons/check-GeneralizedTime.c
View file @
d346ffd8
...
@@ -190,8 +190,8 @@ check_fractions() {
...
@@ -190,8 +190,8 @@ check_fractions() {
static
void
static
void
compare
(
int
lineno
,
int
cmp_control
,
const
char
*
astr
,
const
char
*
bstr
)
{
compare
(
int
lineno
,
int
cmp_control
,
const
char
*
astr
,
const
char
*
bstr
)
{
GeneralizedTime_t
a
=
{(
uint8_t
*
)
strdup
(
astr
),
strlen
(
astr
)};
GeneralizedTime_t
a
=
{(
uint8_t
*
)
strdup
(
astr
),
strlen
(
astr
)
,
{
0
,
0
,
0
,
0
,
0
}
};
GeneralizedTime_t
b
=
{(
uint8_t
*
)
strdup
(
bstr
),
strlen
(
bstr
)};
GeneralizedTime_t
b
=
{(
uint8_t
*
)
strdup
(
bstr
),
strlen
(
bstr
)
,
{
0
,
0
,
0
,
0
,
0
}
};
int
cmp_result
=
asn_DEF_GeneralizedTime
.
op
->
compare_struct
(
int
cmp_result
=
asn_DEF_GeneralizedTime
.
op
->
compare_struct
(
&
asn_DEF_GeneralizedTime
,
&
a
,
&
b
);
&
asn_DEF_GeneralizedTime
,
&
a
,
&
b
);
if
(
cmp_result
!=
cmp_control
)
{
if
(
cmp_result
!=
cmp_control
)
{
...
...
tests/tests-skeletons/check-UTCTime.c
View file @
d346ffd8
...
@@ -35,8 +35,8 @@ check(char *time_str, time_t sample, int as_gmt) {
...
@@ -35,8 +35,8 @@ check(char *time_str, time_t sample, int as_gmt) {
static
void
static
void
compare
(
int
lineno
,
int
cmp_control
,
const
char
*
astr
,
const
char
*
bstr
)
{
compare
(
int
lineno
,
int
cmp_control
,
const
char
*
astr
,
const
char
*
bstr
)
{
UTCTime_t
a
=
{(
uint8_t
*
)
strdup
(
astr
),
strlen
(
astr
)};
UTCTime_t
a
=
{(
uint8_t
*
)
strdup
(
astr
),
strlen
(
astr
)
,
{
0
,
0
,
0
,
0
,
0
}
};
UTCTime_t
b
=
{(
uint8_t
*
)
strdup
(
bstr
),
strlen
(
bstr
)};
UTCTime_t
b
=
{(
uint8_t
*
)
strdup
(
bstr
),
strlen
(
bstr
)
,
{
0
,
0
,
0
,
0
,
0
}
};
int
cmp_result
=
int
cmp_result
=
asn_DEF_UTCTime
.
op
->
compare_struct
(
&
asn_DEF_UTCTime
,
&
a
,
&
b
);
asn_DEF_UTCTime
.
op
->
compare_struct
(
&
asn_DEF_UTCTime
,
&
a
,
&
b
);
if
(
cmp_result
!=
cmp_control
)
{
if
(
cmp_result
!=
cmp_control
)
{
...
...
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