Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
699dcb31
Commit
699dcb31
authored
Aug 07, 2015
by
Oliver Heidmann
Browse files
tests now compiling with clang++
parents
fce198f9
d20fb217
Changes
3
Hide whitespace changes
Inline
Side-by-side
tests/cksum_read.c
View file @
699dcb31
...
...
@@ -26,7 +26,7 @@ read_table(const char *table_fname, size_t *table_len)
*
table_len
=
(
size_t
)
-
1
;
return
NULL
;
}
while
(
fscanf
(
tablefp
,
"%08"
PRIx32
" %d
\n
"
,
&
cksum_temp
,
&
code
)
==
2
)
while
(
fscanf
(
tablefp
,
"%08"
PRIx32
" %d
\n
"
,
&
cksum_temp
,
&
code
)
==
2
)
{
ENSURE_ARRAY_SIZE
(
table
,
table_size
,
table_used
+
1
);
table
[
table_used
].
code
=
code
;
...
...
tests/cksum_verify.c
View file @
699dcb31
...
...
@@ -45,7 +45,7 @@ main()
uint32_t
cksum_result
=
memcrc
(
test_data
,
num_blocks
*
block_size
);
if
(
cksum_result
!=
UINT32_C
(
0xc47779cd
))
{
printf
(
"unexpected crc result: 0x%8"
PRIx32
"
\n
"
,
cksum_result
);
printf
(
"unexpected crc result: 0x%8"
PRIx32
"
\n
"
,
cksum_result
);
return
EXIT_FAILURE
;
}
return
EXIT_SUCCESS
;
...
...
tests/test_cdf_write.c
View file @
699dcb31
...
...
@@ -144,7 +144,11 @@ static void
compute_curvilinear
(
double
*
coords_
,
const
struct
cart_coord
a
[
4
],
size_t
sizex
,
size_t
sizey
)
{
#ifdef __cplusplus
auto
coords
=
(
double
(
*
)[
sizey
][
sizex
])
coords_
;
#else
double
(
*
coords
)[
sizey
][
sizex
]
=
(
double
(
*
)[
sizey
][
sizex
])
coords_
;
#endif
for
(
size_t
j
=
0
;
j
<
sizey
;
++
j
)
{
double
g
=
(
double
)
j
/
(
double
)(
sizey
-
1
);
...
...
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