[unit test] Complete FUSE unit tests #22

This commit is contained in:
2025-09-20 10:28:00 -05:00
parent 38e928811e
commit cfe06ff304

View File

@@ -54,7 +54,8 @@ TYPED_TEST(fuse_test, getattr_directory_reports_type) {
}
TYPED_TEST(fuse_test, getattr_missing_path_sets_enoent) {
auto src = this->create_file_path("getattr");
std::string file_name{"getattr"};
auto src = this->create_file_path(file_name);
struct stat st_unix{};
errno = 0;
EXPECT_EQ(-1, ::stat(src.c_str(), &st_unix));