Files
clang-p2996/libc/test/src/sys/time/CMakeLists.txt
Michael Jones 4c182df633 [libc] Fix suseconds_t definition and utimes_test (#134326)
The main issue was that the kernel expected `suseconds_t` to be 64 bits
but ours was 32. This caused inconsistent failures since all valid
`suseconds_t` values are less than 1000000 (1 million), and some
configurations caused `struct timeval` to be padded to 128 bits.

Also: forgot to use TEST_FILE instead of FILE_PATH in some places.
2025-04-04 12:53:46 -07:00

22 lines
456 B
CMake

add_custom_target(libc_sys_time_unittests)
add_libc_unittest(
utimes_test
SUITE
libc_sys_time_unittests
SRCS
utimes_test.cpp
DEPENDS
libc.hdr.fcntl_macros
libc.hdr.sys_stat_macros
libc.src.errno.errno
libc.src.fcntl.open
libc.src.sys.time.utimes
libc.src.unistd.close
libc.src.unistd.read
libc.src.unistd.write
libc.src.stdio.remove
libc.src.sys.stat.stat
libc.test.UnitTest.ErrnoCheckingTest
)