Skip to content

Broken terminal simulation tests / stty #8718

Description

@julian-klode

In 0.2.2 these tests fail:

test_env::test_simulation_of_terminal_for_stdin_only
test_env::test_simulation_of_terminal_size_information
test_env::test_simulation_of_terminal_true

When rust-coreutils provide the stty command. The test cases by using a shell script inadvertently test the host-installed command, and the Rust version of stty prefers to use /dev/tty instead of /dev/stdin like the GNU one, thus querying the actual underlying tty instead of the simulated tty on stdin.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions