]> git.ipfire.org Git - thirdparty/chrony.git/commit
test: fix sources unit test to call SRC_ReportSource() correctly
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 1 Aug 2022 11:04:00 +0000 (13:04 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 2 Aug 2022 12:44:05 +0000 (14:44 +0200)
commitcd1a666e1bee6ce0e14278106e2f937430ada91c
tree5cec35395dea3a5b08a8ad37df7f7d4e43260ac6
parent070b4f69d0c2e2037102a64abd9e385fad45a33b
test: fix sources unit test to call SRC_ReportSource() correctly

Call the function with current time instead of latest sample of the
first source to avoid undefined conversion of negative double to long
int.

Fixes: 07600cbd714f ("test: extend sources unit test")
test/unit/sources.c