The branch main has been updated by asomers:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=564c732b5c0221373d067c9a21da09b310e676ae

commit 564c732b5c0221373d067c9a21da09b310e676ae
Author:     Alan Somers <asom...@freebsd.org>
AuthorDate: 2025-01-10 18:20:06 +0000
Commit:     Alan Somers <asom...@freebsd.org>
CommitDate: 2025-01-15 20:37:37 +0000

    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
---
 tests/sys/fs/fusefs/mockfs.cc | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/sys/fs/fusefs/mockfs.cc b/tests/sys/fs/fusefs/mockfs.cc
index 1fd2d5e358b1..532dd27d77b9 100644
--- a/tests/sys/fs/fusefs/mockfs.cc
+++ b/tests/sys/fs/fusefs/mockfs.cc
@@ -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);
        }
 }

Reply via email to