mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
tests: fixed some tests on Windows
Tests used to use system `touch` and `ls` instead of testing bench `fixtures.touch` and `uu_ls`
This commit is contained in:
parent
3ec8cc3976
commit
cefc4f6736
2 changed files with 3 additions and 3 deletions
|
@ -159,7 +159,7 @@ fn test_mkdir_trailing_dot() {
|
||||||
.arg(TEST_DIR11)
|
.arg(TEST_DIR11)
|
||||||
.succeeds()
|
.succeeds()
|
||||||
.stdout_contains("created directory 'mkdir_test11'");
|
.stdout_contains("created directory 'mkdir_test11'");
|
||||||
let result = scene2.cmd("ls").arg("-al").run();
|
let result = scene2.ucmd().arg("-al").run();
|
||||||
println!("ls dest {}", result.stdout_str());
|
println!("ls dest {}", result.stdout_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -393,9 +393,9 @@ fn test_same_device_inode() {
|
||||||
fn test_newer_file() {
|
fn test_newer_file() {
|
||||||
let scenario = TestScenario::new(util_name!());
|
let scenario = TestScenario::new(util_name!());
|
||||||
|
|
||||||
scenario.cmd("touch").arg("regular_file").succeeds();
|
scenario.fixtures.touch("regular_file");
|
||||||
sleep(std::time::Duration::from_millis(1000));
|
sleep(std::time::Duration::from_millis(1000));
|
||||||
scenario.cmd("touch").arg("newer_file").succeeds();
|
scenario.fixtures.touch("newer_file");
|
||||||
|
|
||||||
scenario
|
scenario
|
||||||
.ucmd()
|
.ucmd()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue