1 #include <gtest/gtest.h> 2 #include <sys/statvfs.h> 3 using namespace testing::ext; 4 5 class StatStatvfs64Test : public testing::Test { SetUp()6 void SetUp() override {} TearDown()7 void TearDown() override {} 8 }; 9 10 /** 11 * @tc.name: statvfs64_001 12 * @tc.desc: Verify whether the statvfs64() function successfully retrieves the filesystem 13 * statistics for the root directory ("/") without any errors. 14 * @tc.type: FUNC 15 **/ 16 HWTEST_F(StatStatvfs64Test, statvfs64_001, TestSize.Level1) 17 { 18 const char* path = "/"; 19 struct statvfs64 buf; 20 EXPECT_EQ(0, statvfs64(path, &buf)); 21 }