3 use Sys::Hostname qw(hostname);
5 $ENV{OBJECT_REMOTE_TEST_LOGGER} = 1;
10 ':', ($ENV{PERL5LIB} ? $ENV{PERL5LIB} : ()), qw(lib t/lib)
13 my $connection = Object::Remote->connect('-');
15 #$Object::Remote::Connection::DEBUG = 1;
17 my $remote = ORTestClass->new::on($connection);
19 isnt($$, $remote->pid, 'Different pid on the other side');
21 is($remote->counter, 0, 'Counter at 0');
23 is($remote->increment, 1, 'Increment to 1');
25 is($remote->counter, 1, 'Counter at 1');
29 is($remote->call_callback(27, sub { $x++ }), 27, "Callback ok");
31 is($x, 1, "Callback called callback");
34 Sys::Hostname->can::on($connection, 'hostname')->(),