mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07: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:
@@ -159,7 +159,7 @@ fn test_mkdir_trailing_dot() {
|
||||
.arg(TEST_DIR11)
|
||||
.succeeds()
|
||||
.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());
|
||||
}
|
||||
|
||||
|
||||
@@ -393,9 +393,9 @@ fn test_same_device_inode() {
|
||||
fn test_newer_file() {
|
||||
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));
|
||||
scenario.cmd("touch").arg("newer_file").succeeds();
|
||||
scenario.fixtures.touch("newer_file");
|
||||
|
||||
scenario
|
||||
.ucmd()
|
||||
|
||||
Reference in New Issue
Block a user