lsd-rs / lsd-rs/lsd

Tests fail on OpenBSD with Rust 1.78.0

Open
#1,058 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
16.2k
Forks
510
PR merge metrics
No merged PRs in 30d

Description

On OpenBSD current/amd64 (future version 7.6), tests fail with Rust 1.78.0.

  • OS: OpenBSD amd64 (kernel = OpenBSD 7.5-current (GENERIC.MP) #114)
  • Rust version 1.78.0 installed via OpenBSD ports
$ rustc -vV
rustc 1.78.0 (15adfb9cd 2024-04-28) (built from a source tarball)
binary: rustc
commit-hash: 15adfb9cd5b029268e1470a41391d91859b0a1f8
commit-date: 2024-04-28
host: x86_64-unknown-openbsd
release: 1.78.0
LLVM version: 16.0.6
  • Clone lsd sources via Git
  • Build OK
$ cargo build -v
(...)
$ target/debug/lsd --version
lsd 1.1.2
  • Tests fail with cargo test:
$ cargo test -v
(...)
test theme::icon::tests::test_tmp_partial_default_theme_file ... ok

failures:

---- meta::inode::tests::test_inode_no_zero stdout ----
thread 'meta::inode::tests::test_inode_no_zero' panicked at src/meta/inode.rs:53:9:
failed to exec touch

---- meta::links::tests::test_hardlinks_no_zero stdout ----
thread 'meta::links::tests::test_hardlinks_no_zero' panicked at src/meta/links.rs:53:9:
failed to exec touch

---- meta::permissions::test::permission_octal_sticky stdout ----
thread 'meta::permissions::test::permission_octal_sticky' panicked at src/meta/permissions.rs:287:14:
unable to set permissions to file: Os { code: 79, kind: Uncategorized, message: "Inappropriate file type or format" }

---- meta::permissions::test::permission_rwx_sticky stdout ----
thread 'meta::permissions::test::permission_rwx_sticky' panicked at src/meta/permissions.rs:223:14:
unable to set permissions to file: Os { code: 79, kind: Uncategorized, message: "Inappropriate file type or format" }


failures:
    meta::inode::tests::test_inode_no_zero
    meta::links::tests::test_hardlinks_no_zero
    meta::permissions::test::permission_octal_sticky
    meta::permissions::test::permission_rwx_sticky

test result: FAILED. 385 passed; 4 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.98s

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failures with cargo test on OpenBSD, then inspect src/meta/inode.rs, src/meta/links.rs, and src/meta/permissions.rs at the reported test locations. Determine the platform-specific cause and make the affected tests pass without regressing the other 385 passing tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
operating-systems, testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.