File: Child.t

package info (click to toggle)
libfennec-perl 2.018-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 384 kB
  • sloc: perl: 2,083; makefile: 2
file content (18 lines) | stat: -rw-r--r-- 333 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/perl

use strict;
use warnings;

use Fennec;

my $pid   = $$;
my $child = child {
    ok( $pid != $$, "New process $$, parent: $pid" );
};

$child->wait;
my $collector = Fennec::Runner->new->collector;
$collector->collect;
is( Fennec::Runner->new->collector->test_count, 1, "Got test from child process" );

done_testing;