Cleanup ACE_HAS_PTHREAD_SIGMASK_PROTOTYPE, all platforms support it so far as I can...
[ACE_TAO.git] / ACE / protocols / tests / RMCast / run_test.pl
blob6717bf44100263cca70a948af61909579aaeb1c8
1 eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
2 & eval 'exec perl -S $0 $argv:q'
3 if 0;
5 # -*- perl -*-
7 use lib "$ENV{ACE_ROOT}/bin";
8 use PerlACE::TestTarget;
10 $status = 0;
12 my $target1 = PerlACE::TestTarget::create_target (1);
13 my $target2 = PerlACE::TestTarget::create_target (1);
15 my $sender = $target1->CreateProcess("sender", "224.1.2.3:12345");
16 my $receiver = $target2->CreateProcess("receiver", "224.1.2.3:12345");
18 $receiver->Spawn ();
20 # Wait for receiver to start.
22 sleep ($target1->ProcessStartWaitInterval());
24 $sender->Spawn ();
26 $status = $receiver->WaitKill ($target2->ProcessStopWaitInterval() + 30);
28 if ($status != 0) {
29 print STDERR "ERROR: receiver returned $status\n";
30 $status = 1;
33 $sender->Kill ();
35 $target1->GetStderrLog();
36 $target2->GetStderrLog();
38 exit $status;