mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-29 20:04:57 +01:00
fusefs: slightly better debugging in the tests
If the kernel rejects a response written by the server, print it. That would most likely be due to an error in the test logic. MFC after: 2 weeks Sponsored by: ConnectWise
This commit is contained in:
1 parent
9f31c47460
commit
564c732b5c
1 file changed
+4
@@ -1034,6 +1034,10 @@ void MockFS::write_response(const mockfs_buf_out &out) {
|
||||
ASSERT_EQ(-1, r);
|
||||
ASSERT_EQ(out.expected_errno, errno) << strerror(errno);
|
||||
} else {
|
||||
if (r <= 0 && errno == EINVAL) {
|
||||
printf("Failed to write response. unique=%lu:\n",
|
||||
out.header.unique);
|
||||
}
|
||||
ASSERT_TRUE(r > 0 || errno == EAGAIN) << strerror(errno);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user