Skip to content

Commit

Permalink
Disable MakeTime.LocalTimeLibC on Android, where the heritage of the
Browse files Browse the repository at this point in the history
bionic tzdata, particularly that provided by the test environment, is
questionable.
  • Loading branch information
devbww committed Jan 28, 2019
1 parent a7edd28 commit 901b0d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/time_zone_lookup_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1017,7 +1017,7 @@ TEST(MakeTime, LocalTimeLibC) {
// 1) we know how to change the time zone used by localtime()/mktime(),
// 2) cctz and localtime()/mktime() will use similar-enough tzdata, and
// 3) we have some idea about how mktime() behaves during transitions.
#if defined(__linux__)
#if defined(__linux__) && !defined(__ANDROID__)
const char* const ep = getenv("TZ");
std::string tz_name = (ep != nullptr) ? ep : "";
for (const char* const* np = kTimeZoneNames; *np != nullptr; ++np) {
Expand Down

0 comments on commit 901b0d8

Please sign in to comment.