From a9c057dd7499c10a6aca959ab8e90c72495ab6d6 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Mon, 30 Nov 2015 11:45:51 +0100 Subject: [PATCH] src/ceph_test.c: Use the EXPECT_EQ_STR() macro. --- src/ceph_test.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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; -- 2.11.0