Fix registering of mtimes

This commit is contained in:
Kovid Goyal 2023-07-21 12:30:06 +05:30
parent e60fef3ba1
commit eecf24b986
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -399,18 +399,19 @@ class TestFileTransmission(BaseTest):
with open(b / 'simple', 'wb') as f:
f.write(os.urandom(1317))
os.fchmod(f.fileno(), 0o766)
os.utime(f.name, ns=(13000, 13000))
os.link(f.name, b / 'hardlink')
os.link(f.name, b / 'hardlink')
os.utime(f.name, (1.3, 1.3))
se(f.name)
se(str(b/'hardlink'))
os.mkdir(b / 'empty')
se(str(b/'empty'))
s = b / 'sub'
os.mkdir(s)
se(str(s))
with open(s / 'reg', 'wb') as f:
f.write(os.urandom(113))
se(f.name)
os.utime(f.name, (1171.3, 1171.3))
se(f.name)
se(str(s))
os.symlink('/', b/'abssym')
se(b/'abssym')
os.symlink('sub/reg', b/'sym')