[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-mcron] tests/job-specifier.scm vs. TZ
From: |
Ludovic Courtès |
Subject: |
[Bug-mcron] tests/job-specifier.scm vs. TZ |
Date: |
Sun, 08 Apr 2018 23:32:09 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) |
Hello Mathieu,
Thanks for the 1.1.1 release!
Looks like tests/job-specifier.scm has a timezone issue, though. It
expects to be running at UTC-2 (aka. CEST). But even then, there’s
something wrong:
--8<---------------cut here---------------start------------->8---
test-name: next-year
location: ./tests/job-specifier.scm:60
source:
+ (test-equal
+ "next-year"
+ (list 59989762800 1546293600)
+ (list (next-year '(1971))
+ (next-year-from 1522095469)))
expected-value: (59989762800 1546293600)
actual-value: (59989759200 1546293600)
result: FAIL
test-name: next-month
location: ./tests/job-specifier.scm:65
source:
+ (test-equal
+ "next-month"
+ (list 28854000 5094000)
+ (list (next-month '(11))
+ (next-month-from 101 '(0 2 4))))
expected-value: (28854000 5094000)
actual-value: (28850400 5090400)
result: FAIL
test-name: next-day
location: ./tests/job-specifier.scm:70
source:
+ (test-equal
+ "next-day"
+ (list 2588400 342000)
+ (list (next-day '(31))
+ (next-day-from 4337 '(0 5 10))))
expected-value: (2588400 342000)
actual-value: (2584800 338400)
result: FAIL
test-name: next-hour
location: ./tests/job-specifier.scm:75
source:
+ (test-equal
+ "next-hour"
+ '(3600 82800 3600)
+ (list (next-hour)
+ (next-hour '(0))
+ (next-hour-from 3 '(0 1 2 3 4))))
expected-value: (3600 82800 3600)
actual-value: (3600 79200 3600)
result: FAIL
--8<---------------cut here---------------end--------------->8---
It looks like the ‘-from’ variants honor TZ whereas the others don’t,
or something like that.
Ideas?
Thanks,
Ludo’.
- [Bug-mcron] tests/job-specifier.scm vs. TZ,
Ludovic Courtès <=