mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 01:05:06 -05:00
test: use random version in ntp_core unit test
This commit is contained in:
@@ -303,6 +303,7 @@ test_unit(void)
|
|||||||
source.params.interleaved = 1;
|
source.params.interleaved = 1;
|
||||||
if (random() % 2)
|
if (random() % 2)
|
||||||
source.params.authkey = 1;
|
source.params.authkey = 1;
|
||||||
|
source.params.version = random() % 4 + 1;
|
||||||
|
|
||||||
UTI_ZeroTimespec(¤t_time);
|
UTI_ZeroTimespec(¤t_time);
|
||||||
advance_time(TST_GetRandomDouble(1.0, 1e9));
|
advance_time(TST_GetRandomDouble(1.0, 1e9));
|
||||||
|
|||||||
Reference in New Issue
Block a user