Skip to content

Commit

Permalink
Fix registering of mtimes
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed Jul 21, 2023
1 parent 7eb7dd7 commit 83a31a4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions kitty_tests/file_transmission.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,18 +399,19 @@ def se(path):
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')
Expand Down

0 comments on commit 83a31a4

Please sign in to comment.