Skip to content

tests: fix more, stty and nohup compilation on redox - #15830

Open
Arslan-TR wants to merge 1 commit into
uutils:mainfrom
Arslan-TR:tests/15827-redox-cfg-more-stty-nohup
Open

Arslan-TR wants to merge 1 commit into
uutils:mainfrom
Arslan-TR:tests/15827-redox-cfg-more-stty-nohup

Conversation

@Arslan-TR

Copy link
Copy Markdown

pty_path is not available on redox, so cargo check --all-targets --features more,stty,nohup --target x86_64-unknown-redox fails to compile the tests.

  • test_more.rs, test_stty.rs: every test needs a PTY, so exclude the whole file on redox
  • test_nohup.rs: at_and_ucmd was imported for all unix targets but is only used by a test that is not built on redox, which produced an unused import warning. It is now imported inside that test.

I checked that the command above fails before this change and passes without errors or warnings after it.

Closes #15827

pty_path is not available on redox, so gate the PTY-based more and stty
tests accordingly, and only import at_and_ucmd in the nohup test that
uses it.
@xtqqczze

Copy link
Copy Markdown
Collaborator

Is there a better solution than just disabling the tests? openpty is supported by libc for Redox. Is there a nix crate issue tracking this?

@oech3

oech3 commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

https://docs.rs/rustix/latest/rustix/pty/index.html But currently, I don't see any problem with disabling them.

@oech3

oech3 commented Oct 25, 2026

Copy link
Copy Markdown
Contributor

We could run some tests using script command instead.

@xtqqczze

Copy link
Copy Markdown
Collaborator

I will address this by closing #15834.

This branch has not been deployed

No deployments
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.

tests(redox): more, stty, nohup fail to compile

3 participants