From 45cfbb602d1a5d56e6d701df4786c41c1398586a Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 25 Jan 2014 18:38:09 +0000 Subject: Convert pre-epoch-mtime to a yarn --- yarns/0030-basics.yarn | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'yarns/0030-basics.yarn') diff --git a/yarns/0030-basics.yarn b/yarns/0030-basics.yarn index 92304a50..4a89d64e 100644 --- a/yarns/0030-basics.yarn +++ b/yarns/0030-basics.yarn @@ -151,3 +151,17 @@ new backup. AND user U backs up directory L2 to repository R AND user U lists latest generation in repository R into F THEN nothing in F matches L1 + +Pre-epoch timestamps +-------------------- + +It's possible to have timestamps before the epoch, i.e., negative +ones. For example, in the UK during DST, `touch -t 197001010000` will +create one. Test that such timestamps work. + + SCENARIO pre-epoch timestamps + GIVEN file L/file has Unix timestamp -3600 + AND a manifest of directory L in M + WHEN user U backs up directory L to repository R + AND user U restores their latest generation in repository R into X + THEN L, restored to X, matches manifest M -- cgit v1.2.1