1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

ls: fix access time on windows

This commit is contained in:
Terts Diepraam 2021-03-15 14:09:29 +01:00
parent 10135dccef
commit fd957dd148

View file

@ -292,8 +292,11 @@ fn test_ls_order_time() {
assert!(result.success); assert!(result.success);
#[cfg(not(windows))] #[cfg(not(windows))]
assert_eq!(result.stdout, "test-3\ntest-4\ntest-2\ntest-1\n"); assert_eq!(result.stdout, "test-3\ntest-4\ntest-2\ntest-1\n");
// Access time does not seem to be set on Windows on read call
// so the order is 4 3 2 1
#[cfg(windows)] #[cfg(windows)]
assert_eq!(result.stdout, "test-3 test-4 test-2 test-1\n"); assert_eq!(result.stdout, "test-4 test-3 test-2 test-1\n");
// test-2 had the last ctime change when the permissions were set // test-2 had the last ctime change when the permissions were set
// So the order should be 2 4 3 1 // So the order should be 2 4 3 1