Page MenuHomeFreeBSD

Add a regression test for PR 276191.
ClosedPublic

Authored by asomers on Jan 13 2024, 3:37 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Oct 10, 8:09 PM
Unknown Object (File)
Sat, Oct 4, 8:00 AM
Unknown Object (File)
Tue, Sep 23, 7:03 PM
Unknown Object (File)
Sep 6 2025, 2:13 PM
Unknown Object (File)
Sep 6 2025, 11:03 AM
Unknown Object (File)
Aug 4 2025, 5:03 PM
Unknown Object (File)
Jul 29 2025, 11:11 AM
Unknown Object (File)
Jul 29 2025, 5:52 AM
Subscribers

Details

Summary

The bug isn't fusefs-specific, but this is the easiest way to reproduce
it.

MFC with: bdb46c21a3e68d4395d6e0b6a205187e655532b0
MFC after: 1 week
PR: 276191

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 55422
Build 52311: arc lint + arc unit

Event Timeline

kib added inline comments.
tests/sys/fs/fusefs/io.cc
31

This extern decl should be not needed, our system headers are C++ aware.

295

Why malloc+cast, instead of sized new?

511

That said, the assert is already removed.

This revision is now accepted and ready to land.Jan 13 2024, 4:55 PM
tests/sys/fs/fusefs/io.cc
31

I can try removing it in a separate commit.

295

Probably because the initial test cases were copied from preexisting C examples. The fusefs test suite currently uses new in few places. Would you like me to change it throughout?

511

Ok, I'll change the comment to past tense.

tests/sys/fs/fusefs/io.cc
295

IMO it would be better C++. Cast of a malloc() result is ugly even for C programmers.

This revision was automatically updated to reflect the committed changes.