mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04: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 (cherry picked from commit564c732b5c) fusefs: fix the 32-bit build after564c732b5cIt's a printf format specifier again. MFC with:564c732b5cSponsored by: ConnectWise (cherry picked from commit52f7eb31ae)
This commit is contained in:
parent
1c316af141
commit
f390c81498
1 changed files with 4 additions and 0 deletions
|
|
@ -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=%" PRIu64
|
||||
":\n", out.header.unique);
|
||||
}
|
||||
ASSERT_TRUE(r > 0 || errno == EAGAIN) << strerror(errno);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue