HomeFreeBSD

fusefs: fix intermittency in the BadServer.ShortWrite test

Description

fusefs: fix intermittency in the BadServer.ShortWrite test

This test implicitly depended on the order in which two threads
completed. If the test thread finished first, the test would pass. But
if the mock file system thread did, it would attempt to read from an
unmounted file system, and fail. As a result, the test would randomly
fail once out of every several thousand executions. Fix it by telling
the mock file system's event loop to exit without attempting to read any
more events.

Reported by: Siva Mahadevan <me@svmhdvn.name>
MFC after: 1 week
Reviewed by: Siva Mahadevan <me@svmhdvn.name>
Differential Revision: https://reviews.freebsd.org/D53080

Details

Provenance
asomersAuthored on Oct 14 2025, 2:18 AM
Differential Revision
D53080: fusefs: fix intermittency in the BadServer.ShortWrite test
Parents
rG7117c86fcb7e: exec: Check for errors when mapping the shared object
Branches
Unknown
Tags
Unknown