Merge branch 'collectd-5.7' into collectd-5.8
authorFlorian Forster <octo@collectd.org>
Sun, 10 Feb 2019 20:44:20 +0000 (21:44 +0100)
committerFlorian Forster <octo@collectd.org>
Sun, 10 Feb 2019 20:44:20 +0000 (21:44 +0100)
1  2 
src/daemon/common.c
src/daemon/common_test.c
src/log_logstash.c
src/write_prometheus.c

Simple merge
@@@ -168,12 -185,14 +168,14 @@@ DEF_TEST(strjoin) 
                       cases[i].fields_num, cases[i].separator);
      EXPECT_EQ_INT(cases[i].want_return, status);
      EXPECT_EQ_STR(cases[i].want_buffer, buffer);
-   }
  
-   /* use (NULL, 0) to determine required buffer size. */
-   EXPECT_EQ_INT(3, strjoin(NULL, 0, (char *[]){"a", "b"}, 2, "-"));
+     /* use (NULL, 0) to determine required buffer size. */
+     EXPECT_EQ_INT(cases[i].want_return,
+                   strjoin(NULL, 0, cases[i].fields, cases[i].fields_num,
+                           cases[i].separator));
+   }
  
 -  return (0);
 +  return 0;
  }
  
  DEF_TEST(escape_slashes) {
Simple merge
Simple merge