mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
tests/refactor ~ change to use of common code (TestScenario::...
) for testing
This commit is contained in:
parent
d0f6f3d07e
commit
25d4fb71ca
1 changed files with 1 additions and 4 deletions
|
@ -233,8 +233,5 @@ fn test_printf() {
|
|||
|
||||
#[cfg(target_os = "linux")]
|
||||
fn expected_result(args: &[&str]) -> String {
|
||||
use std::process::Command;
|
||||
|
||||
let output = Command::new(util_name!()).env("LANGUAGE", "C").args(args).output().unwrap();
|
||||
String::from_utf8_lossy(&output.stdout).into_owned()
|
||||
TestScenario::new(util_name!()).cmd_keepenv(util_name!()).env("LANGUAGE", "C").args(args).run().stdout
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue