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
24 $Test->ok( $count++, "$count output_ok" );
34 ## Try to make sure we are in the test directory
35 chdir 't' if ( Cwd::cwd() !~ m|/t$| );
37 my $app = TestOutput->new(
39 test_output => join( '/', $cwd, 'results' ),
41 daemonize_ok( $app, 'child forked okay' );
42 sleep(3); # give ourself a chance to produce some output
43 $app->stop( no_exit => 1 );
45 check_test_output($app);
46 unlink( $app->test_output );