From: Florian Forster Date: Mon, 30 Nov 2015 10:45:51 +0000 (+0100) Subject: src/ceph_test.c: Use the EXPECT_EQ_STR() macro. X-Git-Tag: collectd-5.6.0~548 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a9c057dd7499c10a6aca959ab8e90c72495ab6d6;p=collectd.git src/ceph_test.c: Use the EXPECT_EQ_STR() macro. --- diff --git a/src/ceph_test.c b/src/ceph_test.c index ffe2c7f6..d6c72316 100644 --- 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;