]> git.ipfire.org Git - thirdparty/bind9.git/commit
Tweak timestamp checking in the cds system test
authorMichał Kępień <michal@isc.org>
Thu, 8 Mar 2018 14:40:18 +0000 (15:40 +0100)
committerEvan Hunt <each@isc.org>
Thu, 8 Mar 2018 18:57:30 +0000 (13:57 -0500)
commitab2913a29fec4d4acef7edcf2410ae2b902454b4
treebd6a52cd0a04ba8ade93cb0c042d1088d08b74d2
parent7c1de1edecf2d5f1c90f47c8fa412410e2657f6c
Tweak timestamp checking in the cds system test

Given the characteristics of the three timestamps involved in file
modification time checks in the cds system test (each one is an hour
apart from the next), reduce the resolution of these checks to 1 minute.
This will prevent intermittent false negatives caused by exceeding the
currently allowed difference of 9 seconds between file modification
times without making the test moot.

Also note that by using abs(), checkmtime.pl allows the cds system test
to pass when the modification time of the checked file is less than an
hour (or two hours for the second check) in the past.  This should never
happen, so remove abs() from the condition checked by checkmtime.pl.
bin/tests/system/cds/checkmtime.pl