the bug addressed by this was already fixd (mostly) in svn
[ikiwiki.git] / t / basewiki_brokenlinks.t
index 929a560de115fe051541fa45cf8330dffd36731d..f70394b85f02553ecdec8329ebe0eec5a610c51e 100644 (file)
@@ -1,9 +1,9 @@
 #!/usr/bin/perl
 use warnings;
 use strict;
-use Test::More tests => 2;
+use Test::More tests => 3;
 
-my $ret=system("./ikiwiki.out -plugin brokenlinks -rebuild -underlaydir=basewiki t/basewiki_brokenlinks t/basewiki_brokenlinks/out");
-ok($ret == 0);
+ok(! system("make ikiwiki.out"));
+ok(! system("PERL5LIB=. ./ikiwiki.out -plugin brokenlinks -rebuild -underlaydir=basewiki t/basewiki_brokenlinks t/basewiki_brokenlinks/out"));
 ok(`grep 'no broken links' t/basewiki_brokenlinks/out/index.html`);
 system("rm -rf t/basewiki_brokenlinks/out t/basewiki_brokenlinks/.ikiwiki");