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" );
36 ## Try to make sure we are in the test directory
37 chdir 't' if ( Cwd::cwd() !~ m|/t$| );
39 my $app = TestOutput->new(
41 test_output => join( '/', $cwd, 'results' ),
43 daemonize_ok( $app, 'child forked okay' );
44 sleep(3); # give ourself a chance to produce some output
48 local $SIG{__WARN__} = sub { $warnings .= $_[0]; warn @_ };
49 $app->stop( no_exit => 1 );
52 is($warnings, "", "No warnings from stop");
54 check_test_output($app);
55 unlink( $app->test_output );