X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F60-fork-plain.t;h=6d66cf9a58ad2f3c63241615b7e7dbe6c32aeb7e;hb=db7266fa5be4347aac1d32a994d6529c7b5a4afb;hp=54b73a7d5d543e34b07844607690988b7a2aa706;hpb=ddcc7c395d570f0ea20a8e9a242fcbfcc0e49522;p=perl%2Fmodules%2FIPC-MorseSignals.git diff --git a/t/60-fork-plain.t b/t/60-fork-plain.t index 54b73a7..6d66cf9 100644 --- a/t/60-fork-plain.t +++ b/t/60-fork-plain.t @@ -10,8 +10,12 @@ use IPC::MorseSignals::TestSuite qw/try init cleanup/; sub test { my ($desc, @args) = @_; - eval { ok(try(@args), $desc) }; + my ($res, $speed, $len); + eval { + ($res, $speed, $len) = try(@args); + }; fail($desc . " (died : $@)") if $@; + ok($res, $desc . ' (' . $len . ' bits @ ' . $speed . ' bauds)'); } my @msgs = qw/hlagh hlaghlaghlagh HLAGH HLAGHLAGHLAGH \x{0dd0}\x{00} @@ -19,7 +23,9 @@ my @msgs = qw/hlagh hlaghlaghlagh HLAGH HLAGHLAGHLAGH \x{0dd0}\x{00} init 6; -test 'plain' => $_ for @msgs; +for (1 .. @msgs) { + test 'plain ' . $_ => $msgs[$_-1]; +} cleanup;