X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/06137b95d419fd62a3c8065430fec302c2680454..4481b2cc66f291da6ec310595a6706947f1b3f81:/t/mercurial.t?ds=sidebyside diff --git a/t/mercurial.t b/t/mercurial.t index c42e328c2..da4e2beaa 100755 --- a/t/mercurial.t +++ b/t/mercurial.t @@ -12,7 +12,7 @@ BEGIN { } } } -use Test::More tests => 10; +use Test::More tests => 11; BEGIN { use_ok("IkiWiki"); } @@ -45,7 +45,7 @@ my $message = "Added the second page"; my $test2 = readfile("t/test2.mdwn"); writefile('test2.mdwn', $config{srcdir}, $test2); system "hg add -R $config{srcdir} $config{srcdir}/test2.mdwn"; -system "hg commit -R $config{srcdir} -u \"$user\" -m \"$message\""; +system "hg commit -R $config{srcdir} -u \"$user\" -m \"$message\" -d \"0 0\""; @changes = IkiWiki::rcs_recentchanges(3); @@ -56,4 +56,7 @@ is($changes[0]{pages}[0]{"page"}, "test2.mdwn"); is($changes[1]{pages}[0]{"page"}, "test1.mdwn"); +my $ctime = IkiWiki::rcs_getctime("test2.mdwn"); +is($ctime, 0); + system "rm -rf $dir";