Permalink
Browse files

Seriously Test::Builder is a PITA, use Fennec

* Can't use Fennec here cause we will soon be a dependancy of Fennec
  • Loading branch information...
1 parent 2e2cd79 commit 3b59f492e2ab6a94b6adc2291cc3eb5f733d3e15 @exodist committed Aug 27, 2010
Showing with 12 additions and 11 deletions.
  1. +12 −11 t/Child.t
View
@@ -84,17 +84,18 @@ my $end = time;
ok( $end - $start > 2, "No autoflush" );
-SKIP: if ($^O eq 'MSWin32') {
- skip "detach is not available on win32", 1;
-}
-else {
- $proc = $CLASS->new( sub {
- my $self = shift;
- $self->detach;
- $self->say( $self->detached );
- }, pipe => 1 )->start;
-
- is( $proc->read(), $proc->pid . "\n", "Child detached" );
+SKIP: {
+ if ($^O eq 'MSWin32') {
+ skip "detach is not available on win32", 1;
+ }
+ else {
+ $proc = $CLASS->new( sub {
+ my $self = shift;
+ $self->detach;
+ $self->say( $self->detached );
+ }, pipe => 1 )->start;
+ is( $proc->read(), $proc->pid . "\n", "Child detached" );
+ }
}
done_testing;

0 comments on commit 3b59f49

Please sign in to comment.