From 841a86a4f369ac091c517015477a59800fbcb2e9 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Sun, 14 Jun 2015 18:13:17 +0100 Subject: [PATCH] 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. --- debian/changelog | 2 ++ t/img.t | 1 + 2 files changed, 3 insertions(+) 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 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")); -- 2.39.2