projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b8c128
)
src/ceph_test.c: Use the EXPECT_EQ_STR() macro.
author
Florian Forster
<octo@collectd.org>
Mon, 30 Nov 2015 10:45:51 +0000
(11:45 +0100)
committer
Florian Forster
<octo@collectd.org>
Mon, 30 Nov 2015 10:45:51 +0000
(11:45 +0100)
src/ceph_test.c
patch
|
blob
|
history
diff --git
a/src/ceph_test.c
b/src/ceph_test.c
index
ffe2c7f
..
d6c7231
100644
(file)
--- a/
src/ceph_test.c
+++ b/
src/ceph_test.c
@@
-44,11
+44,8
@@
DEF_TEST(parse_keys)
{
char got[DATA_MAX_NAME_LEN];
- memset (got, 0, sizeof (got));
-
CHECK_ZERO (parse_keys (got, sizeof (got), cases[i].str));
-
- CHECK_ZERO (strcmp (got, cases[i].want));
+ EXPECT_EQ_STR (cases[i].want, got);
}
return 0;