X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/e0bfd0cafda6a44a826cdfe07b99299cc96dfdf3..c0e5a0f1aa10ecd3b351886b95be995f44d6d8fb:/t/trail.t?ds=sidebyside diff --git a/t/trail.t b/t/trail.t index 28aa1c09d..b24a81e41 100755 --- a/t/trail.t +++ b/t/trail.t @@ -9,9 +9,19 @@ my $blob; ok(! system("rm -rf t/tmp")); ok(! system("mkdir t/tmp")); +# Write files with a date in the past, so that when we refresh, +# the update is detected. +sub write_old_file { + my $name = shift; + my $content = shift; + + writefile($name, "t/tmp/in", $content); + ok(utime(333333333, 333333333, "t/tmp/in/$name")); +} + # Use a rather stylized template to override the default rendering, to make # it easy to search for the desired results -writefile("templates/trails.tmpl", "t/tmp/in", <