#include "src/__support/macros/config.h"
#include "src/sys/statvfs/linux/statfs_utils.h"
#include "src/sys/statvfs/statvfs.h"
#include "test/UnitTest/ErrnoSetterMatcher.h"
#include "test/UnitTest/LibcTest.h"
#include <linux/magic.h>
usingnamespaceLIBC_NAMESPACE::testing::ErrnoSetterMatcher;
#ifdef SYS_statfs64
using StatFs = statfs64;
#else
StatFs;
#endif
namespace LIBC_NAMESPACE_DECL {
static int statfs(const char *path, StatFs *buf) { … }
}
TEST(LlvmLibcSysStatfsTest, StatfsBasic) { … }
TEST(LlvmLibcSysStatfsTest, StatvfsInvalidPath) { … }
TEST(LlvmLibcSysStatfsTest, StatvfsNameTooLong) { … }