[all-commits] [llvm/llvm-project] 10fb71: [libc] Fix test passing negative value in timespec...
Mikhail R. Gadelha via All-commits
all-commits at lists.llvm.org
Wed Sep 6 11:28:44 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 10fb71bdff587d38d373b2dbcff33334bd7c66d1
https://github.com/llvm/llvm-project/commit/10fb71bdff587d38d373b2dbcff33334bd7c66d1
Author: Mikhail R. Gadelha <mikhail at igalia.com>
Date: 2023-09-06 (Wed, 06 Sep 2023)
Changed paths:
M libc/test/src/time/gettimeofday_test.cpp
Log Message:
-----------
[libc] Fix test passing negative value in timespec passed to nanosleep (#65346)
This test was setting tv_nsec to a negative value, which as per the
standard this is an EINVAL:
The value in the tv_nsec field was not in the range [0, 999999999] or
tv_sec was negative.
https://man7.org/linux/man-pages/man2/nanosleep.2.html
More information about the All-commits
mailing list