aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2024-01-09 14:38:33 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2024-01-09 14:38:33 +0000
commitd1afadc227ea5ab2065ce6c28cbf10640beec1ac (patch)
tree21a4c879ca6c57ab33c7ed872cb57328212b452b
parent9908b1e3c8708aba09afa9f76f05ed4a1a4f4844 (diff)
parentdb123a73cad6714a7f4b906977c615d1d67f13f4 (diff)
downloadbionic-d1afadc227ea5ab2065ce6c28cbf10640beec1ac.tar.gz
Merge "time.mktime_EOVERFLOW: set an explicit timezone." into android14-tests-dev
-rw-r--r--tests/time_test.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/time_test.cpp b/tests/time_test.cpp
index f0ad937b9..5f802aa80 100644
--- a/tests/time_test.cpp
+++ b/tests/time_test.cpp
@@ -168,6 +168,8 @@ TEST(time, mktime_10310929) {
}
TEST(time, mktime_EOVERFLOW) {
+ setenv("TZ", "UTC", 1);
+
struct tm t;
memset(&t, 0, sizeof(tm));