diff options
author | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2011-10-03 21:02:32 +0000 |
---|---|---|
committer | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2011-10-03 21:02:32 +0000 |
commit | 4dcca24c609008f9fe8a4e01966702b8f4c08e61 (patch) | |
tree | 6bf00b87749636ef3ea7ec22a9b13d4dd2597378 /tests/LongUpcalls/run_test.pl | |
parent | 8c7cc4d18ddf28a18a01fef53aaea68422b2fff2 (diff) | |
download | ATCD-4dcca24c609008f9fe8a4e01966702b8f4c08e61.tar.gz |
Merged version 94552 from main trunk into this branchalt_mapping_SAIC
Diffstat (limited to 'tests/LongUpcalls/run_test.pl')
-rwxr-xr-x | tests/LongUpcalls/run_test.pl | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/tests/LongUpcalls/run_test.pl b/tests/LongUpcalls/run_test.pl index 16f79a0d149..8f2d8989e02 100755 --- a/tests/LongUpcalls/run_test.pl +++ b/tests/LongUpcalls/run_test.pl @@ -21,14 +21,25 @@ my $server = PerlACE::TestTarget::create_target (1) || die "Create target 1 fail my $client = PerlACE::TestTarget::create_target (2) || die "Create target 2 failed\n"; my $iorbase = "server.ior"; -my $svcconf = "svc$PerlACE::svcconf_ext"; my $server_iorfile = $server->LocalFile ($iorbase); -my $server_svcfile = $server->LocalFile ($svcconf); my $client_iorfile = $client->LocalFile ($iorbase); -my $client_svcfile = $client->LocalFile ($svcconf); $server->DeleteFile($iorbase); $client->DeleteFile($iorbase); +my $svcconf = "svc$PerlACE::svcconf_ext"; +my $server_svcfile = $server->LocalFile ($svcconf); +my $client_svcfile = $client->LocalFile ($svcconf); + +if ($client->PutFile ($svcconf) == -1) { + print STDERR "ERROR: cannot set file <$client_svcfile>\n"; + exit 1; +} +if ($server->PutFile ($svcconf) == -1) { + print STDERR "ERROR: cannot set file <$server_svcfile>\n"; + exit 1; +} + + print STDERR "==== Server upcall waits for operations on other threads\n"; $SV = $server->CreateProcess ("blocking_server", |