aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2015-06-14 18:13:17 +0100
committerSimon McVittie <smcv@debian.org>2015-06-14 18:13:17 +0100
commit841a86a4f369ac091c517015477a59800fbcb2e9 (patch)
tree69737fa946b09caf51e2d2a2e8bd2387eab21d79
parent7a2117bf8c2cf5372e64ab7b368803eec7e6f5d7 (diff)
downloadikiwiki-841a86a4f369ac091c517015477a59800fbcb2e9.tar
ikiwiki-841a86a4f369ac091c517015477a59800fbcb2e9.tar.gz
img test: set old timestamp on source file that will change
This is so that the test will pass even if it takes less than 1 second.
-rw-r--r--debian/changelog2
-rwxr-xr-xt/img.t1
2 files changed, 3 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index 2b79e51ab..b7f4cf644 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,8 @@ ikiwiki (3.20150611) UNRELEASED; urgency=medium
* inline: change default sort order from age to "age title" for determinism
* img: avoid ImageMagick misinterpreting filenames containing a colon
+ * img test: set old timestamp on source file that will change, so that
+ the test will pass even if it takes less than 1 second
-- Simon McVittie <smcv@debian.org> Thu, 11 Jun 2015 08:32:35 +0100
diff --git a/t/img.t b/t/img.t
index 7e7753aab..7598dd9f0 100755
--- a/t/img.t
+++ b/t/img.t
@@ -55,6 +55,7 @@ $maybe_svg_img
[[!img twopages.pdf size=16x pagenumber=1]]
EOF
);
+ok(utime(333333333, 333333333, "t/tmp/in/imgconversions.mdwn"));
ok(! system("make -s ikiwiki.out"));