Changeset View
Changeset View
Standalone View
Standalone View
tests/sys/fs/fusefs/setattr.cc
Show First 20 Lines • Show All 542 Lines • ▼ Show 20 Lines | TEST_F(Setattr, truncate_discards_cached_data) { | ||||
r = memcmp(expected, r1buf, r1_size); | r = memcmp(expected, r1buf, r1_size); | ||||
ASSERT_EQ(0, r); | ASSERT_EQ(0, r); | ||||
free(expected); | free(expected); | ||||
free(r1buf); | free(r1buf); | ||||
free(r0buf); | free(r0buf); | ||||
free(w0buf); | free(w0buf); | ||||
leak(fd); | |||||
} | } | ||||
/* Change a file's timestamps */ | /* Change a file's timestamps */ | ||||
TEST_F(Setattr, utimensat) { | TEST_F(Setattr, utimensat) { | ||||
const char FULLPATH[] = "mountpoint/some_file.txt"; | const char FULLPATH[] = "mountpoint/some_file.txt"; | ||||
const char RELPATH[] = "some_file.txt"; | const char RELPATH[] = "some_file.txt"; | ||||
const uint64_t ino = 42; | const uint64_t ino = 42; | ||||
const timespec oldtimes[2] = { | const timespec oldtimes[2] = { | ||||
▲ Show 20 Lines • Show All 218 Lines • Show Last 20 Lines |