in reply to Re^8: Testing Time::Piece on Windows/VC
in thread Testing Time::Piece on Windows/VC
And the 2 failing tests I get when I "mix runtimes" come from:* Therefore, we need to retrieve the value of $ENV{TZ} and call CRT * putenv() to update the CRT copy of the environment (if it is differ +ent) * whenever we're about to call tzset().
I expect that when Time::Piece is built with a compiler that uses a different runtime, Time::Piece::_tzset() registers the environment change ok, but registers it with the *wrong* runtime (for the purposes of Time::Piece, at least).SKIP: { skip "can't register TZ changes in a pseudo-fork", 2 if $is_pseudo +_fork; local $ENV{TZ} = "EST5"; Time::Piece::_tzset(); # register the environment change my $lt = localtime; cmp_ok(scalar($lt->tzoffset), 'eq', '-18000'); cmp_ok($lt->strftime("%Z"), 'eq', 'EST'); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^10: Testing Time::Piece on Windows/VC
by BrowserUk (Patriarch) on Jan 29, 2010 at 11:56 UTC | |
by baudehlo (Initiate) on Feb 01, 2010 at 20:28 UTC | |
by BrowserUk (Patriarch) on Feb 01, 2010 at 20:42 UTC | |
by syphilis (Archbishop) on Feb 02, 2010 at 08:13 UTC | |
by BrowserUk (Patriarch) on Feb 02, 2010 at 08:27 UTC | |
by syphilis (Archbishop) on Feb 02, 2010 at 12:47 UTC | |
|