Changeset View
Changeset View
Standalone View
Standalone View
tests/sys/fs/fusefs/read.cc
Show First 20 Lines • Show All 822 Lines • ▼ Show 20 Lines | TEST_F(Read, sendfile) | ||||
close(sp[1]); | close(sp[1]); | ||||
close(sp[0]); | close(sp[0]); | ||||
leak(fd); | leak(fd); | ||||
} | } | ||||
/* sendfile should fail gracefully if fuse declines the read */ | /* sendfile should fail gracefully if fuse declines the read */ | ||||
/* https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236466 */ | /* https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236466 */ | ||||
TEST_F(Read, sendfile_eio) | TEST_F(Read, DISABLED_sendfile_eio) | ||||
{ | { | ||||
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 char *CONTENTS = "abcdefgh"; | const char *CONTENTS = "abcdefgh"; | ||||
uint64_t ino = 42; | uint64_t ino = 42; | ||||
int fd; | int fd; | ||||
ssize_t bufsize = strlen(CONTENTS); | ssize_t bufsize = strlen(CONTENTS); | ||||
int sp[2]; | int sp[2]; | ||||
▲ Show 20 Lines • Show All 75 Lines • Show Last 20 Lines |