Merge pull request #4058 from niyaznigmatullin/windows_tests

tests: fixed some tests on Windows
This commit is contained in:
Sylvestre Ledru
2022-10-18 10:45:51 +02:00
committed by GitHub
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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());
}
+2 -2
View File
@@ -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()