--- a/test/time_zone_lookup_test.cc +++ b/test/time_zone_lookup_test.cc @@ -1024,3 +1024,3 @@ TEST(MakeTime, LocalTimeLibC) { // 3) we have some idea about how mktime() behaves during transitions. -#if defined(__linux__) && !defined(__ANDROID__) +#if defined(__linux__) && !defined(__ANDROID__) && defined(CCTZ_TEST_LIBC_LOCALTIME) const char* const ep = getenv("TZ");