]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
test: fix IPv6 test in 139-nts
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 22 May 2025 10:55:20 +0000 (12:55 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 27 May 2025 08:56:11 +0000 (10:56 +0200)
Make sure an IPv6 address is actually used and don't forget to remove
the measurements log to not interfere with the subsequent test.

test/simulation/139-nts

index 773f885ad1f52feda5681218633bc188a30caf08..5bb2f44fd9c0099d54cfa7921e2136696da4174d 100755 (executable)
@@ -64,8 +64,11 @@ if check_config_h 'FEAT_IPV6 1'; then
        check_source_selection || test_fail
        check_sync || test_fail
 
+       check_file_messages "20.*:123:1.* 111 111 1111" 75 80 measurements.log || test_fail
+       check_file_messages "20.*:123:1.* 111 001 0000" 37 39 measurements.log || test_fail
        check_file_messages "   2       1       .*      4460    " 260 300 log.packets || test_fail
        check_file_messages "." 6 6 ntskeys || test_fail
+       rm -f tmp/measurements.log
 
        ip_family=$default_ip_family
 fi