summaryrefslogtreecommitdiff
path: root/TAO/tests/Bug_1482_Regression
diff options
context:
space:
mode:
authordbudko <dbudko@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2009-12-04 09:16:48 +0000
committerdbudko <dbudko@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2009-12-04 09:16:48 +0000
commit88c51a52d8b124328656e5f02bc183ab9c4a7506 (patch)
treef5f3ca948555bb7478d0cf7ae35452aee28b44e6 /TAO/tests/Bug_1482_Regression
parent251625ece0305ac36542d53f70322d55f3f6f579 (diff)
downloadATCD-88c51a52d8b124328656e5f02bc183ab9c4a7506.tar.gz
Fri Dec 4 09:13:17 UTC 2009 Denis Budko <denis.budko@remedy.nl>
* orbsvcs/tests/Notify/Persistent_Filter/run_test.pl: * orbsvcs/tests/Notify/Discarding/run_test.pl: * orbsvcs/tests/FT_App/run_test_notifier.pl: * orbsvcs/tests/Event/Basic/run_test.pl: * orbsvcs/tests/Event/Performance/run_test.pl: * orbsvcs/tests/Event/UDP/run_test.pl: * orbsvcs/tests/Bug_3387_Regression/MessengerServer.cpp: * orbsvcs/tests/Bug_3387_Regression/MessengerClient.cpp: * orbsvcs/tests/Bug_3387_Regression/run_test.pl: * orbsvcs/tests/Bug_2247_Regression/run_test.pl: * orbsvcs/tests/EC_MT_Mcast/run_test.pl: * performance-tests/Protocols/run_senders.pl: * tests/Server_Leaks/run_test.pl: * tests/Bug_1551_Regression/server.cpp: * tests/Bug_1551_Regression/run_test.pl: * tests/IOR_Endpoint_Hostnames/list_interfaces.cpp: * tests/Connection_Purging/run_test.pl: * tests/Bug_1482_Regression/server.cpp: * tests/Bug_1482_Regression/run_test.pl: * tests/ForwardOnceUponException/run_test.pl: * tests/Reliable_Oneways/run_test.pl: * examples/Buffered_Oneways/run_test.pl: * examples/ior_corbaloc/run_test.pl: Tests are converted to use new test framework and added to fuzz build.
Diffstat (limited to 'TAO/tests/Bug_1482_Regression')
-rwxr-xr-xTAO/tests/Bug_1482_Regression/run_test.pl2
-rw-r--r--TAO/tests/Bug_1482_Regression/server.cpp10
2 files changed, 6 insertions, 6 deletions
diff --git a/TAO/tests/Bug_1482_Regression/run_test.pl b/TAO/tests/Bug_1482_Regression/run_test.pl
index b245db7afdb..a508ef3ab05 100755
--- a/TAO/tests/Bug_1482_Regression/run_test.pl
+++ b/TAO/tests/Bug_1482_Regression/run_test.pl
@@ -116,7 +116,7 @@ while($elapsed < $max_running_time) {
sleep (90);
$server_status = $SV->WaitKill ($server->ProcessStopWaitInterval());
- if ($server_status != 0) {
+ if ($server_status < 0) {
print STDERR "ERROR: server returned $server_status\n";
$CL1->Kill (); $CL1->TimedWait (1);
$CL2->Kill (); $CL2->TimedWait (1);
diff --git a/TAO/tests/Bug_1482_Regression/server.cpp b/TAO/tests/Bug_1482_Regression/server.cpp
index 982e9a5e462..87d6842dbd1 100644
--- a/TAO/tests/Bug_1482_Regression/server.cpp
+++ b/TAO/tests/Bug_1482_Regression/server.cpp
@@ -52,18 +52,18 @@ ACE_TMAIN(int argc, ACE_TCHAR *argv[])
if (CORBA::is_nil (root_poa.in ()))
ACE_ERROR_RETURN ((LM_ERROR,
" (%P|%t) Panic: nil RootPOA\n"),
- 1);
+ -1);
PortableServer::POAManager_var poa_manager =
root_poa->the_POAManager ();
if (parse_args (argc, argv) != 0)
- return 1;
+ return -1;
Hello *hello_impl;
ACE_NEW_RETURN (hello_impl,
Hello (orb.in ()),
- 1);
+ -1);
PortableServer::ServantBase_var owner_transfer(hello_impl);
PortableServer::ObjectId_var id =
@@ -83,7 +83,7 @@ ACE_TMAIN(int argc, ACE_TCHAR *argv[])
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
ior_output_file),
- 1);
+ -1);
ACE_OS::fprintf (output_file, "%s", ior.in ());
ACE_OS::fclose (output_file);
@@ -100,7 +100,7 @@ ACE_TMAIN(int argc, ACE_TCHAR *argv[])
catch (const CORBA::Exception& ex)
{
ex._tao_print_exception ("Exception caught:");
- return 1;
+ return -1;
}
return 0;