X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Fipc.t;fp=t%2Fipc.t;h=d2b6ad4f4b17f376e97d7f9c5c8456c2c3371513;hb=6cc0e6870cb4950c08646769f2a7e30729b7d409;hp=903294c5b61336890c18768077a530ddc7736981;hpb=0c89ebd477d1c7a695a0a0b3023c0d41abe573fa;p=public-inbox.git diff --git a/t/ipc.t b/t/ipc.t index 903294c5..d2b6ad4f 100644 --- a/t/ipc.t +++ b/t/ipc.t @@ -121,7 +121,7 @@ $warn->autoflush(0); local $SIG{__WARN__} = sub { print $warn "PID:$$ ", @_ }; my @ppids; for my $t ('local', 'worker', 'worker again') { - $ipc->wq_do('test_write_each_fd', $wa, $wb, $wc, 'hello world'); + $ipc->wq_do('test_write_each_fd', [ $wa, $wb, $wc ], 'hello world'); my $i = 0; for my $fh ($ra, $rb, $rc) { my $buf = readline($fh); @@ -129,7 +129,7 @@ for my $t ('local', 'worker', 'worker again') { like($buf, qr/\Ai=$i \d+ hello world\z/, "got expected ($t)"); $i++; } - $ipc->wq_do('test_die', $wa, $wb, $wc); + $ipc->wq_do('test_die', [ $wa, $wb, $wc ]); my $ppid = $ipc->wq_workers_start('wq', 1); push(@ppids, $ppid); } @@ -142,7 +142,7 @@ SKIP: { my $pid = fork // BAIL_OUT $!; if ($pid == 0) { use POSIX qw(_exit); - $ipc->wq_do('test_write_each_fd', $wa, $wb, $wc, $$); + $ipc->wq_do('test_write_each_fd', [ $wa, $wb, $wc ], $$); _exit(0); } else { my $i = 0;