with 'Object::Remote::Role::Connector';
sub _open2_for {
- # XXX bin/ is wrong but meh, fix later
+ my $open_this = (
+ -d 't' && -e 'bin/object-remote-node'
+ ? 'bin/object-remote-node'
+ : 'object-remote-node'
+ );
my $pid = open2(my $its_stdout, my $its_stdin, 'bin/object-remote-node')
or die "Couldn't start local node: $!";
return ($its_stdin, $its_stdout, $pid);