X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F60-fork-plain.t;fp=t%2F60-fork-plain.t;h=54b73a7d5d543e34b07844607690988b7a2aa706;hb=ddcc7c395d570f0ea20a8e9a242fcbfcc0e49522;hp=0000000000000000000000000000000000000000;hpb=13c16aeec1454ae58e932b393e827d6353c13231;p=perl%2Fmodules%2FIPC-MorseSignals.git diff --git a/t/60-fork-plain.t b/t/60-fork-plain.t new file mode 100644 index 0000000..54b73a7 --- /dev/null +++ b/t/60-fork-plain.t @@ -0,0 +1,25 @@ +#!perl -T + +use strict; +use warnings; + +use Test::More tests => 7; + +use lib 't/lib'; +use IPC::MorseSignals::TestSuite qw/try init cleanup/; + +sub test { + my ($desc, @args) = @_; + eval { ok(try(@args), $desc) }; + fail($desc . " (died : $@)") if $@; +} + +my @msgs = qw/hlagh hlaghlaghlagh HLAGH HLAGHLAGHLAGH \x{0dd0}\x{00} + h\x{00}la\x{00}gh \x{00}\x{ff}\x{ff}\x{00}\x{00}\x{ff}/; + +init 6; + +test 'plain' => $_ for @msgs; + +cleanup; +