From: Miroslav Lichvar Date: Wed, 7 Mar 2018 12:17:29 +0000 (+0100) Subject: test: use random version in ntp_core unit test X-Git-Tag: 3.3-pre1~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af145e871e19a1574afb572394ff47b04925ffc2;p=thirdparty%2Fchrony.git test: use random version in ntp_core unit test --- diff --git a/test/unit/ntp_core.c b/test/unit/ntp_core.c index ad69e0f0..9587306d 100644 --- a/test/unit/ntp_core.c +++ b/test/unit/ntp_core.c @@ -303,6 +303,7 @@ test_unit(void) source.params.interleaved = 1; if (random() % 2) source.params.authkey = 1; + source.params.version = random() % 4 + 1; UTI_ZeroTimespec(¤t_time); advance_time(TST_GetRandomDouble(1.0, 1e9));