From 8a26f81dfd3670b61aa857a031921cde4faa5a65 Mon Sep 17 00:00:00 2001
From: Yavor Doganov <yavor@gnu.org>
Date: Mon, 17 Jul 2023 17:01:24 +0300
Subject: [PATCH 3/3] Skip NSTimeZone tests relying on 64bit time_t on all
 32bit architectures

---
 ChangeLog                         | 3 +++
 Tests/base/NSTimeZone/localtime.m | 2 ++
 2 files changed, 5 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 0be787811..667f267de 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2023-07-17  Yavor Doganov  <yavor@gnu.org>
 
+	* Tests/base/NSTimeZone/localtime.m (testTZDB): Skip tests relying
+	on 64bit time_t on all 32bit architectures.
+
 	* Source/NSTimeZone.m: Move #include "tzdb.h" a bit earlier so
 	that the POSIX_TZONES preprocessor conditional is correct.
 	([GSTimeZoneDetail
diff --git a/Tests/base/NSTimeZone/localtime.m b/Tests/base/NSTimeZone/localtime.m
index 37b592427..f94be7991 100644
--- a/Tests/base/NSTimeZone/localtime.m
+++ b/Tests/base/NSTimeZone/localtime.m
@@ -41,6 +41,7 @@ testTZDB(NSString *fileName, const char *message, bool beyond2038)
 	"post-1996 DST time offset vs UTC found for user-supplied %s",
 	message);
 
+#if __LP64__
    /* After 32bit value seconds-since-1970 using TZDB v2+ file */
    if (beyond2038) {
      date = [NSDate dateWithString: @"2039-01-16 23:59:59 -0200"];
@@ -48,6 +49,7 @@ testTZDB(NSString *fileName, const char *message, bool beyond2038)
 	  "post-2038 standard time offset vs UTC found for user-supplied %s",
 	  message);
    }
+#endif
 
   return;
 }
-- 
2.40.1

