eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
     & eval 'exec perl -S $0 $argv:q'
     if 0;

# $Id: run_test.pl 83901 2008-11-28 11:29:31Z johnnyw $
# -*- perl -*-

use lib "$ENV{ACE_ROOT}/bin";
use PerlACE::TestTarget;

my $server = PerlACE::TestTarget::create_target(1) || die "Create target 1 failed\n";

$iorbase = "test.ior";
my $server_iorfile = $server->LocalFile ($iorbase);
$server->DeleteFile($iorbase);
$status = 0;

$SV = $server->CreateProcess ("Collocated_Test");

$SV->Arguments ("-o $server_iorfile -k file://$server_iorfile");

print STDERR "======== Running in Default Mode \n";
$sv = $SV->SpawnWaitKill ($server->ProcessStartWaitInterval());

if ($sv != 0) {
    print STDERR "ERROR in Collocation_Exception_Test\n";
    $status = 1;
}
$server->DeleteFile($iorbase);
$server->GetStderrLog();

exit $status;
