fix hang in t/deep_recursion.t on *BSD

This commit is contained in:
Graham Ollis
2012-12-27 14:51:34 -05:00
parent 80340f9950
commit 7618cacaa4
2 changed files with 7 additions and 4 deletions

View File

@@ -1,6 +1,7 @@
Revision history for Mojolicious::Plugin::TtRenderer
{{$NEXT}}
- Fix hang in t/deep_recursion.t on *BSD
1.32 December 27, 2012
- silenced a few annoying warnings during test

View File

@@ -11,12 +11,14 @@ use Test::More tests => 3;
use Mojolicious::Lite;
use Test::Mojo;
use File::Temp qw( tempdir tempfile );
use File::Temp qw( tempdir );
use File::Spec;
my($fh_log,$filename_log) = tempfile('fooXXXXX', TMPDIR => 1, UNLINK => 1);
# Silence
# Send log to tmp file so that it doesn't clutter up the screen.
app->log->level('fatal');
app->log->path($filename_log);
app->log->path(do {
File::Spec->catfile(tempdir(CLEANUP => 1), 'mojo.log');
});
plugin 'tt_renderer' => {template_options => { COMPILE_DIR => tempdir( CLEANUP => 1 ) }};