Cross Reference:
xref
: /
illumos-gate
/
usr
/
src
/
cmd
/
perl
/
5.8.4
/
distrib
/
lib
/
Test
/
Simple
/
t
/
fork.t
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
fork.t revision 7c478bd95313f5f23a4c958a745db2134aa03244
#!/
usr
/
bin
/
perl
-w
BEGIN
{
if
(
$ENV
{
PERL_CORE
} )
{
chdir
't'
;
@
INC
=
'../lib'
;
}
}
use
Test
::
More
;
use
Config
;
if
( !
$Config
{
d_fork
} )
{
plan
skip_all
=>
"This system cannot fork"
;
}
else
{
plan
tests
=>
1
;
}
if
(
fork
)
{
# parent
pass
(
"Only the parent should process the ending, not the child"
)
;
}
else
{
exit
;
# child
}