Skip to content

Commit

Permalink
Merge pull request #3235 from jmdavis/freebsd_workaround
Browse files Browse the repository at this point in the history
Add workaround in std.datetime unit tests for bug in FreeBSD 9+.
  • Loading branch information
schveiguy committed Apr 27, 2015
2 parents 9ec468e + f4067cf commit 0b0cb7f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions std/datetime.d
Original file line number Diff line number Diff line change
Expand Up @@ -26966,8 +26966,16 @@ public:
{
scope(exit) clearTZEnvVar();

setTZEnvVar("America/Los_Angeles");
assert(LocalTime().dstName == "PDT");
version(FreeBSD)
{
// A bug on FreeBSD 9+ makes it so that this test fails.
// https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=168862
}
else
{
setTZEnvVar("America/Los_Angeles");
assert(LocalTime().dstName == "PDT");
}

setTZEnvVar("America/New_York");
assert(LocalTime().dstName == "EDT");
Expand Down

0 comments on commit 0b0cb7f

Please sign in to comment.