summaryrefslogtreecommitdiff
path: root/yarns/0030-basics.yarn
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2014-01-25 18:38:09 +0000
committerLars Wirzenius <liw@liw.fi>2014-01-25 18:38:09 +0000
commit45cfbb602d1a5d56e6d701df4786c41c1398586a (patch)
treeb19238ed999067ea18546879f18f54aca82cc2f8 /yarns/0030-basics.yarn
parent436739598d8a30acdcd74a1ac24e4783ce8110cf (diff)
downloadobnam-45cfbb602d1a5d56e6d701df4786c41c1398586a.tar.gz
Convert pre-epoch-mtime to a yarn
Diffstat (limited to 'yarns/0030-basics.yarn')
-rw-r--r--yarns/0030-basics.yarn14
1 files changed, 14 insertions, 0 deletions
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