Changeset View
Changeset View
Standalone View
Standalone View
tests/sys/fs/fusefs/bad_server.cc
| Show First 20 Lines • Show All 59 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| mockfs_buf_out out; | mockfs_buf_out out; | ||||
| out.header.len = sizeof(out.header) - 1; | out.header.len = sizeof(out.header) - 1; | ||||
| out.header.error = 0; | out.header.error = 0; | ||||
| out.header.unique = 0; // Asynchronous notification | out.header.unique = 0; // Asynchronous notification | ||||
| out.expected_errno = EINVAL; | out.expected_errno = EINVAL; | ||||
| m_mock->write_response(out); | m_mock->write_response(out); | ||||
| /* | |||||
| * Tell the event loop to quit. The kernel has already disconnected us | |||||
| * because of the short write. | |||||
| */ | |||||
| m_mock->m_quit = true; | |||||
| } | } | ||||
| /* | /* | ||||
| * It is illegal to report an error, and also send back a payload. | * It is illegal to report an error, and also send back a payload. | ||||
| */ | */ | ||||
| TEST_F(BadServer, ErrorWithPayload) | TEST_F(BadServer, ErrorWithPayload) | ||||
| { | { | ||||
| const char FULLPATH[] = "mountpoint/some_file.txt"; | const char FULLPATH[] = "mountpoint/some_file.txt"; | ||||
| Show All 28 Lines | |||||