Skip to content

Skip Write-Protection Test on Unsupported File Systems#515

Open
sahvx655-wq wants to merge 1 commit into
apache:masterfrom
sahvx655-wq:fileinstall-skip-write-protection-test
Open

Skip Write-Protection Test on Unsupported File Systems#515
sahvx655-wq wants to merge 1 commit into
apache:masterfrom
sahvx655-wq:fileinstall-skip-write-protection-test

Conversation

@sahvx655-wq
Copy link
Copy Markdown

Modifies testInvalidTempDir in DirectoryWatcherTest to verify that parent.setWritable(false) actually takes effect before proceeding with the test.

Some file systems and operating systems do not reliably enforce directory write-permission changes (for example, common Windows/NTFS configurations for the directory owner). In such environments, the test's assumptions are invalid and can lead to false failures.

If write access cannot be revoked as expected, the test exits early instead of failing, ensuring consistent behavior across platforms while preserving test coverage where permission enforcement is supported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant