From: Simon McVittie Date: Sun, 14 Jun 2015 17:13:17 +0000 (+0100) Subject: img test: set old timestamp on source file that will change X-Git-Tag: debian/3.20150614_bpo8+1~2 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/841a86a4f369ac091c517015477a59800fbcb2e9 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. --- 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"));