1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27: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:
Niyaz Nigmatullin 2022-10-17 23:30:59 +03:00
parent 3ec8cc3976
commit cefc4f6736
2 changed files with 3 additions and 3 deletions

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