A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use xbt_XXX_is_empty() instead of testing xbt_XXX_length() against 0.
[simgrid.git]
/
teshsuite
/
gras
/
datadesc
/
datadesc_usage.c
diff --git
a/teshsuite/gras/datadesc/datadesc_usage.c
b/teshsuite/gras/datadesc/datadesc_usage.c
index
3c2bc0f
..
9327d3c
100644
(file)
--- a/
teshsuite/gras/datadesc/datadesc_usage.c
+++ b/
teshsuite/gras/datadesc/datadesc_usage.c
@@
-147,7
+147,7
@@
static void test_dynar_empty(gras_socket_t sock, int direction)
write_read("xbt_dynar_of_int", &i, &j, sock, direction);
/* xbt_dynar_dump(j); */
if (direction == READ || direction == COPY) {
- xbt_assert(xbt_dynar_
length(j) == 0
);
+ xbt_assert(xbt_dynar_
is_empty(j)
);
xbt_dynar_free(&j);
}
xbt_dynar_free(&i);