Merge branch '136-tweak-timestamp-checking-in-the-cds-system-test' into 'master'

Tweak timestamp checking in the cds system test

Closes #136

See merge request isc-projects/bind9!114
This commit is contained in:
Evan Hunt 2018-03-08 14:06:50 -05:00
commit 58be47e3e1
2 changed files with 4 additions and 1 deletions

View file

@ -1,3 +1,6 @@
4912. [test] Improved the reliability of the 'cds' system test.
[GL #136]
4911. [test] Improved the reliability of the 'mkeys' system test.
[GL #128]

View file

@ -13,4 +13,4 @@ my $target = shift;
my $file = shift;
my $mtime = time - (stat $file)[9];
die "bad mtime $mtime"
unless abs($mtime - $target) < 10;
unless ($mtime - $target >= 0 && $mtime - $target < 60);