Skip to content

build_dir::test::fail_to_overwrite fails on Illumos #642

Description

@sourcefrog

It looks like either Illumos allows you to std::fs::write a file with mode 000, or to write into a directory with mode 000? Seems weird, maybe something else is going on.

This is not the case where we have an existing handle to a file with mode 000. We're trying to write again through a newly opened fd.

https://github.com/sourcefrog/cargo-mutants/actions/runs/31989527960/job/95270428969

  ---- build_dir::test::fail_to_overwrite stdout ----
  thread 'build_dir::test::fail_to_overwrite' (9) panicked at src/build_dir.rs:281:61:
  called `Result::unwrap_err()` on an `Ok` value: ()
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
  ---- build_dir::test::fail_to_overwrite_dir_permission_denied stdout ----
  thread 'build_dir::test::fail_to_overwrite_dir_permission_denied' (11) panicked at src/build_dir.rs:305:61:
  called `Result::unwrap_err()` on an `Ok` value: ()
  failures:
      build_dir::test::fail_to_overwrite
      build_dir::test::fail_to_overwrite_dir_permission_denied
  test result: FAILED. 288 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.81s
  error: test failed, to rerun pass `--bin cargo-mutants`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions