Code

src/utils_latency.c: Add unit test.
authorFlorian Forster <octo@collectd.org>
Mon, 13 Jul 2015 09:30:16 +0000 (11:30 +0200)
committerFlorian Forster <octo@collectd.org>
Mon, 13 Jul 2015 10:10:01 +0000 (12:10 +0200)
commit64581b01b20c9bccd99dd7ba0537e563ecfb4ca6
treeb86703dd9027849d0c71c763431a36ccdb745079
parentbf1613564dfcb0a517b77d658a844ea37b45803f
src/utils_latency.c: Add unit test.

This test successfully reproduces the crash reported in #1131 by calling
latency_counter_add (l, DOUBLE_TO_CDTIME_T (-1.0));
src/Makefile.am
src/testing.h
src/utils_latency_test.c [new file with mode: 0644]