Skip to content
  • Michał Kępień's avatar
    Tweak timestamp checking in the cds system test · ab2913a2
    Michał Kępień authored and Evan Hunt's avatar Evan Hunt committed
    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.
    ab2913a2