balabit/syslog-ng — pull request #55 by algernon (2014-01-02 13:18:42+00:00)
Title: control: Fix the test_control_cmds test to be deterministic

The order in which stats are generated is not deterministic, therefore
testing whether the generated stats are the same as a pre-determined
list will sooner or later fail. There are two things we can test: that
the first line is the stats header, and that the number of returned
lines are of the expected number. In this case, I believe it is enough
if we test the header only.

Reported-by: Andras Mitzki
Signed-off-by: Gergely Nagy