From 4c35fb72f4cec4085eefe00f1deb666939c84aa9 Mon Sep 17 00:00:00 2001
From: Simon McVittie <smcv@collabora.com>
Date: Tue, 8 Sep 2020 14:52:21 +0100
Subject: [PATCH] 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: Simon McVittie <smcv@collabora.com>
---
 tests/cheap-copy.py | 1 -
 1 file changed, 1 deletion(-)

diff --git a/tests/cheap-copy.py b/tests/cheap-copy.py
index f98d7d94e..caeed84f0 100755
--- a/tests/cheap-copy.py
+++ b/tests/cheap-copy.py
@@ -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)
-- 
GitLab