Page MenuHomeFreeBSD

kyua: Try harder to delete directories.
ClosedPublic

Authored by des on Jul 9 2025, 7:54 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Aug 2, 5:06 AM
Unknown Object (File)
Sun, Aug 2, 3:28 AM
Unknown Object (File)
Sun, Aug 2, 3:28 AM
Unknown Object (File)
Sun, Aug 2, 2:18 AM
Unknown Object (File)
Sat, Aug 1, 5:31 AM
Unknown Object (File)
Thu, Jul 30, 3:48 AM
Unknown Object (File)
Tue, Jul 28, 8:40 PM
Unknown Object (File)
Mon, Jul 27, 1:22 PM

Details

Summary

When recursing into a directory to delete it, start by chmod'ing it to
0700. This fixes an issue where kyua is able to run, but not debug, a
test case that creates unwriteable directories, because when debugging
it tries (and fails) to delete the directory after the test completes.

This includes a test case which I haven't been able to test since we
don't build or install kyua's own tests.

MFC after: 1 week
Sponsored by: Klara, Inc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

des requested review of this revision.Jul 9 2025, 7:54 PM
igoro added a subscriber: igoro.

LGTM. And I had a successful testing on my side.

This revision is now accepted and ready to land.Jul 9 2025, 8:26 PM
This revision was automatically updated to reflect the committed changes.