[libc-commits] [libc] [libc] add statvfs (PR #86169)
Schrodinger ZHU Yifan via libc-commits
libc-commits at lists.llvm.org
Thu Mar 21 11:45:58 PDT 2024
SchrodingerZhu wrote:
@lntue Do you know that test targets are not created for
```
add_custom_target(libc_sys_statvfs_unittests)
add_libc_unittest(
statvfs_test
SUITE
libc_sys_statvfs_unittests
SRCS
statvfs_test.cpp
DEPENDS
libc.src.errno.errno
libc.src.sys.statvfs.linux.statfs_utils
libc.src.sys.statvfs.statvfs
libc.test.UnitTest.ErrnoSetterMatcher
)
add_libc_unittest(
fstatvfs_test
SUITE
libc_sys_statvfs_unittests
SRCS
fstatvfs_test.cpp
DEPENDS
libc.src.errno.errno
libc.src.sys.statvfs.linux.statfs_utils
libc.src.sys.statvfs.fstatvfs
libc.src.fcntl.open
libc.src.unistd.close
libc.src.__support.CPP.string_view
libc.test.UnitTest.ErrnoSetterMatcher
)
```
https://github.com/llvm/llvm-project/pull/86169
More information about the libc-commits
mailing list