[libc-commits] [PATCH] D159113: [libc] Fix test case that expects time_t to be a 32-bit type

Phabricator via libc-commits libc-commits at lists.llvm.org
Wed Aug 30 07:24:44 PDT 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rG9e3445451989: [libc] Fix test case that expects time_t to be a 32-bit type (authored by Mikhail R. Gadelha <mikhail at igalia.com>).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D159113/new/

https://reviews.llvm.org/D159113

Files:
  libc/test/src/time/mktime_test.cpp


Index: libc/test/src/time/mktime_test.cpp
===================================================================
--- libc/test/src/time/mktime_test.cpp
+++ libc/test/src/time/mktime_test.cpp
@@ -178,7 +178,7 @@
 }
 
 TEST(LlvmLibcMkTime, InvalidEndOf32BitEpochYear) {
-  if (sizeof(size_t) != 4)
+  if (sizeof(time_t) != 4)
     return;
   {
     // 2038-01-19 03:14:08 tests overflow of the second in 2038.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D159113.554710.patch
Type: text/x-patch
Size: 405 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230830/3bf3a6d0/attachment.bin>


More information about the libc-commits mailing list