1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 12:07:46 +00:00

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
commit f4484c71b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

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());
}

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()