1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-09-15 11:36:16 +00:00

tests/common/util.rs: add cfg(feature = "env")

This commit is contained in:
Daniel Hofstetter 2024-03-03 15:02:19 +01:00
parent a8ad6275ae
commit d651063de3

View file

@ -3583,6 +3583,7 @@ mod tests {
} }
#[cfg(unix)] #[cfg(unix)]
#[cfg(feature = "env")]
#[test] #[test]
fn test_simulation_of_terminal_false() { fn test_simulation_of_terminal_false() {
let scene = TestScenario::new("util"); let scene = TestScenario::new("util");
@ -3599,6 +3600,7 @@ mod tests {
} }
#[cfg(unix)] #[cfg(unix)]
#[cfg(feature = "env")]
#[test] #[test]
fn test_simulation_of_terminal_true() { fn test_simulation_of_terminal_true() {
let scene = TestScenario::new("util"); let scene = TestScenario::new("util");
@ -3620,6 +3622,7 @@ mod tests {
} }
#[cfg(unix)] #[cfg(unix)]
#[cfg(feature = "env")]
#[test] #[test]
fn test_simulation_of_terminal_size_information() { fn test_simulation_of_terminal_size_information() {
let scene = TestScenario::new("util"); let scene = TestScenario::new("util");
@ -3646,6 +3649,7 @@ mod tests {
} }
#[cfg(unix)] #[cfg(unix)]
#[cfg(feature = "env")]
#[test] #[test]
fn test_simulation_of_terminal_pty_sends_eot_automatically() { fn test_simulation_of_terminal_pty_sends_eot_automatically() {
let scene = TestScenario::new("util"); let scene = TestScenario::new("util");
@ -3662,6 +3666,7 @@ mod tests {
} }
#[cfg(unix)] #[cfg(unix)]
#[cfg(feature = "env")]
#[test] #[test]
fn test_simulation_of_terminal_pty_pipes_into_data_and_sends_eot_automatically() { fn test_simulation_of_terminal_pty_pipes_into_data_and_sends_eot_automatically() {
let scene = TestScenario::new("util"); let scene = TestScenario::new("util");
@ -3683,6 +3688,7 @@ mod tests {
} }
#[cfg(unix)] #[cfg(unix)]
#[cfg(feature = "env")]
#[test] #[test]
fn test_simulation_of_terminal_pty_write_in_data_and_sends_eot_automatically() { fn test_simulation_of_terminal_pty_write_in_data_and_sends_eot_automatically() {
let scene = TestScenario::new("util"); let scene = TestScenario::new("util");