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" );
35 ## Try to make sure we are in the test directory
36 chdir 't' if ( Cwd::cwd() !~ m|/t$| );
38 my $app = TestOutput->new(
40 test_output => join( '/', $cwd, 'results' ),
42 daemonize_ok( $app, 'child forked okay' );
43 sleep(5); # give ourself a chance to produce some output
44 $app->stop( no_exit => 1 );
46 check_test_output($app);
47 unlink( $app->test_output );