diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2010-04-17 18:45:23 +0200 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-04-17 13:52:16 -0400 |
commit | 9ff5174f1164cb2d31ff487a9c84d08559b81d39 (patch) | |
tree | 3b9a56a18ff54b009c2df4d552d7cbf1fcc6617b /t | |
parent | a1aa71efc9d1db42b425f43afc1ff4a37c4c0f3a (diff) | |
download | ikiwiki-9ff5174f1164cb2d31ff487a9c84d08559b81d39.tar ikiwiki-9ff5174f1164cb2d31ff487a9c84d08559b81d39.tar.gz |
Fix get_ctime implementation in Bazaar plugin, add get_mtime implementation.
Diffstat (limited to 't')
-rwxr-xr-x | t/bazaar.t | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/t/bazaar.t b/t/bazaar.t index 2ca44a65e..0bdd883d5 100755 --- a/t/bazaar.t +++ b/t/bazaar.t @@ -12,7 +12,7 @@ BEGIN { } } } -use Test::More tests => 16; +use Test::More tests => 17; BEGIN { use_ok("IkiWiki"); } @@ -60,6 +60,9 @@ is($changes[1]{pages}[0]{"page"}, "test1"); my $ctime = IkiWiki::rcs_getctime("test2.mdwn"); ok($ctime >= time() - 20); +my $mtime = IkiWiki::rcs_getmtime("test2.mdwn"); +ok($mtime >= time() - 20); + writefile('test3.mdwn', $config{srcdir}, $test1); IkiWiki::rcs_add("test3.mdwn"); IkiWiki::rcs_rename("test3.mdwn", "test4.mdwn"); |