Skip to content
Snippets Groups Projects
Commit 4c35fb72 authored by Simon McVittie's avatar Simon McVittie
Browse files

cheap-copy test: Don't assert that copies preserve ctime


glnx_file_copy_at() preserves atime and mtime, but makes no guarantee
about ctime. In practice this test usually passed anyway, because after
the first file is created, the copy is usually created within the same
second, but this is not guaranteed: if we create the first file just
before a clock tick and copy it just after, the test will fail.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent 464bac08
No related branches found
No related tags found
No related merge requests found
......@@ -71,7 +71,6 @@ class TestCheapCopy(BaseTest):
self.assertEqual(info.st_mode, info2.st_mode)
self.assertEqual(info.st_size, info2.st_size)
self.assertEqual(int(info.st_mtime), int(info2.st_mtime))
self.assertEqual(int(info.st_ctime), int(info2.st_ctime))
def assert_tree_is_same(self, left, right, require_hard_links=True):
self.assert_tree_is_superset(left, right, require_hard_links)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment