Page MenuHomeFreeBSD

kyua: Try harder to delete directories.
ClosedPublic

Authored by des on Wed, Jul 9, 7:54 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jul 26, 12:58 AM
Unknown Object (File)
Fri, Jul 25, 7:02 PM
Unknown Object (File)
Fri, Jul 25, 1:12 PM
Unknown Object (File)
Fri, Jul 25, 8:52 AM
Unknown Object (File)
Thu, Jul 24, 5:53 PM
Unknown Object (File)
Wed, Jul 23, 4:11 PM
Unknown Object (File)
Sun, Jul 20, 3:24 PM
Unknown Object (File)
Sun, Jul 20, 3:12 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 65307
Build 62190: arc lint + arc unit

Event Timeline

des requested review of this revision.Wed, Jul 9, 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.Wed, Jul 9, 8:26 PM
This revision was automatically updated to reflect the committed changes.