Re: [Taskforest-discuss] `make test` failures?
Brought to you by:
enoor
From: Steve H. <st...@id...> - 2010-02-02 16:55:51
|
Aijaz, Thanks for the prompt reply. I think you asked the right questions. Here is what I have learned this morning. First the easy questions: I saw the exact same set of failures last night installing both through CPAN and directly from the tarball. Yes, all of the relevant directories are writeable. Now for the news: running the exact same commands this morning (`perl Makefile.PL`, `make`, & `make test`) does *not* result in the same failures experienced last night. That is, all of the tests pass, *until* t/025_Midnight_Ready, which still hangs. When I was installing TaskForest last night it was between 10pm and midnight, PST. My system time zone was set to 'America/Los_Angeles'. If I change my system time zone to 'America/Chicago' then t/025_Midnight_Ready does not hang, and all test pass with the exception of t/018TaskForestDaemon, which seems to have errors either way (after starting the daemon with the suggested `perl -T -I lib ./blib/script/taskforestd --config_file=./taskforestd.test.cfg`). Interestingly, between 10pm and midnight PST and CST are on different days. Could this have caused the other `make test` failures? Looking inside t/families/MIDNIGHT I see: start => '00:00', tz=>'GMT', days => 'Mon,Tue,Wed,Thu,Fri,Sat,Sun' J_005( start=>'04:59') # 11:59pm Chicago time April 19 2009 Based on the comment this test appears to make the assumption that 4:59 GMT is 11:59pm Chicago time. While this was true April 19, 2009 it is not true today due to Daylight Savings Time not being in effect. 2009-04-09: http://timeanddate.com/worldclock/converted.html?month=4&day=19&year=2009&hour=4&min=55&sec=0&p1=0&p2=64 2010-02-02: http://timeanddate.com/worldclock/converted.html?month=2&day=2&year=2010&hour=4&min=55&sec=0&p1=0&p2=64 Could this have caused t/025_Midnight_Ready to hang? Thanks, steve On Tue, Feb 2, 2010 at 6:17 AM, Aijaz Ansari <en...@us...> wrote: > Steve: > > Thanks for your detailed email. There may be a problem with the test case > or something unexpected in your setup. I'll try to duplicate this on my > end. Could you please answer these questions for me? It might help > identify the problem. > > What time zone is your computer set at, and at what time were you running > these tests? It really shouldn't matter, but it may help identify the > problem. > > Were you attempting to install via CPAN or did you download the package and > and manually type in perl Makefile.PL, make and make test? > > Did the linux user you were logged in as have write permission to the > current directory you were in? > > Thanks, > > Aijaz. > > > On Tue, Feb 2, 2010 at 1:23 AM, Steve Hulet <st...@id...> wrote: >> >> Hi, >> >> I just downloaded Task Forest 1.33 with high hopes and great >> expectations--I've been looking for a simple yet powerful >> text-file-based job scheduler of this sort for a long time. >> >> I ran `perl Makefile.PL`, `make`, and `make test` but many of the unit >> test fail and t/025_Midnight_Ready hangs after printing 1/19. Is this >> expected? Did I miss a setup or configuration step? >> >> I'm running perl v5.10.0 on Linux version 2.6.31-17-generic (Ubuntu >> 9.10). `make test` output included below. >> >> Thanks, >> steve >> > > <snip> |