[all-commits] [llvm/llvm-project] 9e3445: [libc] Fix test case that expects time_t to be a 3...

Mikhail R. Gadelha via All-commits all-commits at lists.llvm.org
Wed Aug 30 07:24:44 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9e34454519898b79975c655ee46048f77490b0d2
      https://github.com/llvm/llvm-project/commit/9e34454519898b79975c655ee46048f77490b0d2
  Author: Mikhail R. Gadelha <mikhail at igalia.com>
  Date:   2023-08-30 (Wed, 30 Aug 2023)

  Changed paths:
    M libc/test/src/time/mktime_test.cpp

  Log Message:
  -----------
  [libc] Fix test case that expects time_t to be a 32-bit type

This patch changes a test case that tests for overflow when time_t is
32-bit long, however, it was checking size_t instead of time_t.

This in on par with other testcases that correctly check the size of
time_t (asctime_test.cpp, gmtime_r_test.cpp and gmtime_test.cpp).

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D159113




More information about the All-commits mailing list