fuse integration: skip the permission-denied check as root

Root bypasses mode-bit checks, so writing the read-only file succeeded and
the assertion failed in root-run environments like containers.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
Chris LuandDevin committed 2026-10-22 03:38:56 -07:00
1 parent 105c929b0a
commit cd90b32a83
1 file changed
+3
@@ -696,6 +696,9 @@ func (s *POSIXComplianceTestSuite) TestErrorHandling(t *testing.T) {
})
t.Run("PermissionDenied", func(t *testing.T) {
if os.Geteuid() == 0 {
t.Skip("running as root: mode bits are not enforced")
}
testFile := filepath.Join(mountPoint, "readonly.txt")
// Create read-only file