]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
test: use random version in ntp_core unit test
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 7 Mar 2018 12:17:29 +0000 (13:17 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Wed, 7 Mar 2018 12:17:55 +0000 (13:17 +0100)
test/unit/ntp_core.c

index ad69e0f0ae0845806d9941f0a4bc0e0fe9628e8e..9587306ddd0c44fa21b0283ebf54917623246a04 100644 (file)
@@ -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(&current_time);
     advance_time(TST_GetRandomDouble(1.0, 1e9));