1 use Test::More no_plan => 1;
3 use Test::MooseX::Daemonize;
6 my $Test = Test::Builder->new;
12 with qw(MooseX::Daemonize);
13 with qw(Test::MooseX::Daemonize::Testable); # setup our test environment
25 $Test->ok( $count++, "$count output_ok" );
37 ## Try to make sure we are in the test directory
38 chdir 't' if ( Cwd::cwd() !~ m|/t$| );
40 my $app = TestOutput->new(
42 test_output => join( '/', $cwd, 'results' ),
44 daemonize_ok( $app, 'child forked okay' );
45 sleep(3); # give ourself a chance to produce some output
49 local $SIG{__WARN__} = sub { $warnings .= $_[0]; warn @_ };
50 $app->stop( no_exit => 1 );
53 is($warnings, "", "No warnings from stop");
55 check_test_output($app);
56 unlink( $app->test_output );