X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FIPC-MorseSignals.git;a=blobdiff_plain;f=t%2F10-proto.t;h=5c25980877e4c9c5f9100d15cdd899efc61c404a;hp=d05c7efc515455cd3e153abd44a843b0a89ccc70;hb=f92bbcf77fb757c6655f4611c900c49ed178f27e;hpb=8a4a3ba553f81cfdb679c19363f514efb04f29c1 diff --git a/t/10-proto.t b/t/10-proto.t index d05c7ef..5c25980 100644 --- a/t/10-proto.t +++ b/t/10-proto.t @@ -8,9 +8,15 @@ use Test::More tests => 2; use lib 't/lib'; use IPCMTest qw/try init cleanup/; -init; +sub test { + my ($desc, @args) = @_; + eval { ok(try(@args), $desc) }; + fail($desc . " (died : $@)") if $@; +} -ok(try('x', 0), 'anonymous'); -ok(try('x', 1), 'signed'); +init 6; + +test 'anonymous' => 'x', 0; +test 'signed' => 'x', 1; cleanup;