X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Futils_mount_test.c;h=d9d685ae7bf09fafca10fb1278a97d0fb84a6d87;hb=f0b5610723ae8962ae264f84210f8bac483bcd20;hp=a16b262c268b254581c22383d907dc6392bdf379;hpb=2d51f3eaee79b36f9ec51381075b1f486b7921b8;p=collectd.git diff --git a/src/utils_mount_test.c b/src/utils_mount_test.c index a16b262c..d9d685ae 100644 --- a/src/utils_mount_test.c +++ b/src/utils_mount_test.c @@ -24,8 +24,8 @@ * Florian octo Forster */ -#include "testing.h" #include "collectd.h" +#include "testing.h" #include "utils_mount.h" #if HAVE_LIBKSTAT @@ -81,14 +81,14 @@ DEF_TEST(cu_mount_getoptionvalue) char line_opts[] = "foo=one,bar=two,qux=three"; char line_bool[] = "one,two,three"; - STREQ ("one", cu_mount_getoptionvalue (line_opts, "foo=")); - STREQ ("two", cu_mount_getoptionvalue (line_opts, "bar=")); - STREQ ("three", cu_mount_getoptionvalue (line_opts, "qux=")); + EXPECT_EQ_STR ("one", cu_mount_getoptionvalue (line_opts, "foo=")); + EXPECT_EQ_STR ("two", cu_mount_getoptionvalue (line_opts, "bar=")); + EXPECT_EQ_STR ("three", cu_mount_getoptionvalue (line_opts, "qux=")); OK (NULL == cu_mount_getoptionvalue (line_opts, "unknown=")); - STREQ ("", cu_mount_getoptionvalue (line_bool, "one")); - STREQ ("", cu_mount_getoptionvalue (line_bool, "two")); - STREQ ("", cu_mount_getoptionvalue (line_bool, "three")); + EXPECT_EQ_STR ("", cu_mount_getoptionvalue (line_bool, "one")); + EXPECT_EQ_STR ("", cu_mount_getoptionvalue (line_bool, "two")); + EXPECT_EQ_STR ("", cu_mount_getoptionvalue (line_bool, "three")); OK (NULL == cu_mount_getoptionvalue (line_bool, "four")); return (0);