From: Marat Salimzianov Date: Thu, 7 Feb 2019 12:52:10 +0000 (+0100) Subject: Fixed utils_format_graphite_test X-Git-Tag: collectd-5.11.0~14^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2fa067b9eb77c01251201ed5a75b0c9f55add388;p=thirdparty%2Fcollectd.git Fixed utils_format_graphite_test --- diff --git a/src/utils_format_graphite_test.c b/src/utils_format_graphite_test.c index 2dff0c530..10c37cd3e 100644 --- a/src/utils_format_graphite_test.c +++ b/src/utils_format_graphite_test.c @@ -81,10 +81,11 @@ DEF_TEST(metric_name) { .type_instance = "test: \"hello\"", .want_name = "example@com.test-foo@@test@.single-test@@@hello@", }, + /* test escaping comma */ { .plugin_instance = "foo (test)", - .type_instance = "test: \"hello\"", - .want_name = "example,com.test-foo,,test,.single-test,,,hello,", + .type_instance = "test,123,", + .want_name = "example@com.test-foo@@test@.single-test@123@", }, /* flag GRAPHITE_SEPARATE_INSTANCES */ {