From dc5c956f2f04b92fd28798c66aaddf53a7848d8e Mon Sep 17 00:00:00 2001 From: Milan Cvetkovic Date: Mon, 25 Apr 2016 16:11:14 -0400 Subject: Fixes corbaloc:uiop:/randesvous|KEY to properly parse KEY instead of |KEY Fix for: CORBA_Object_var o = string_to_object("corbaloc:uiop:/tmp/sock|KEY"); MyObject_var mo = MyObject::_narrow(); _narrow() throws due to "|KEY" sent as object key. --- TAO/tao/CORBALOC_Parser.cpp | 2 +- TAO/tao/Strategies/UIOP_Connector.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/TAO/tao/CORBALOC_Parser.cpp b/TAO/tao/CORBALOC_Parser.cpp index 63cd20f81ae..e770412fb67 100644 --- a/TAO/tao/CORBALOC_Parser.cpp +++ b/TAO/tao/CORBALOC_Parser.cpp @@ -172,7 +172,7 @@ TAO_CORBALOC_Parser::parse_string (const char * ior, CORBA::ORB_ptr orb) continue; } - if (*ior == '/') // found key separator + if (*ior == endpoints[ndx].obj_key_sep_) // found key separator { ++ior; break; diff --git a/TAO/tao/Strategies/UIOP_Connector.cpp b/TAO/tao/Strategies/UIOP_Connector.cpp index 3b9e56f6067..552b1bb5a10 100644 --- a/TAO/tao/Strategies/UIOP_Connector.cpp +++ b/TAO/tao/Strategies/UIOP_Connector.cpp @@ -86,7 +86,7 @@ TAO_UIOP_Connector::corbaloc_scan (const char *str, size_t &len) str)); return 0; } - len = (separator - str) + 1; + len = separator - str; return this->make_profile (); } -- cgit v1.2.1 From ed5755ec9040af82191f6d5b1190f7c7afea6830 Mon Sep 17 00:00:00 2001 From: Johnny Willemsen Date: Tue, 30 Oct 2018 08:48:56 +0100 Subject: Removed empty lines * TAO/tests/Connection_Purging/README: --- TAO/tests/Connection_Purging/README | 2 -- 1 file changed, 2 deletions(-) diff --git a/TAO/tests/Connection_Purging/README b/TAO/tests/Connection_Purging/README index 95524a2116d..d4b9df91f89 100644 --- a/TAO/tests/Connection_Purging/README +++ b/TAO/tests/Connection_Purging/README @@ -1,5 +1,3 @@ - - Connection Purging ------------------ -- cgit v1.2.1 From 1f916302499a56d6de52d61c0c8c8a4b8f4c2d4b Mon Sep 17 00:00:00 2001 From: Johnny Willemsen Date: Tue, 30 Oct 2018 08:57:40 +0100 Subject: Make formatting of debug message consistent with others in the TAO core * TAO/tao/Strategies/UIOP_Connection_Handler.cpp: --- TAO/tao/Strategies/UIOP_Connection_Handler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TAO/tao/Strategies/UIOP_Connection_Handler.cpp b/TAO/tao/Strategies/UIOP_Connection_Handler.cpp index 92ee31f5679..e6638ac8f3f 100644 --- a/TAO/tao/Strategies/UIOP_Connection_Handler.cpp +++ b/TAO/tao/Strategies/UIOP_Connection_Handler.cpp @@ -120,7 +120,7 @@ TAO_UIOP_Connection_Handler::open (void*) if (TAO_debug_level > 0) TAOLIB_DEBUG ((LM_DEBUG, - ACE_TEXT ("TAO (%P|%t) UIOP connection to server ") + ACE_TEXT ("TAO (%P|%t) - UIOP_Connection_Handler::open, connection to server ") ACE_TEXT ("<%C> on %d\n"), addr.get_path_name (), this->peer ().get_handle ())); -- cgit v1.2.1 From c619e9ac8bd1fb1ad1e5d0c1a7b2b52f17970914 Mon Sep 17 00:00:00 2001 From: Johnny Willemsen Date: Tue, 30 Oct 2018 08:57:58 +0100 Subject: Removed commented out operation * TAO/tests/Connection_Purging/test.idl: --- TAO/tests/Connection_Purging/test.idl | 2 -- 1 file changed, 2 deletions(-) diff --git a/TAO/tests/Connection_Purging/test.idl b/TAO/tests/Connection_Purging/test.idl index 7c5dec9cd92..5713764cb2a 100644 --- a/TAO/tests/Connection_Purging/test.idl +++ b/TAO/tests/Connection_Purging/test.idl @@ -1,6 +1,4 @@ interface test { void send_stuff(in string foo); - -// oneway void shutdown (); }; -- cgit v1.2.1 From 23d91ca6ff4b0e61ac1835c2e3c6cbf757c79d4d Mon Sep 17 00:00:00 2001 From: Johnny Willemsen Date: Tue, 30 Oct 2018 08:58:12 +0100 Subject: Fixed typos * TAO/docs/ORBEndpoint.html: * TAO/docs/pluggable_messaging.html: --- TAO/docs/ORBEndpoint.html | 9 ++------- TAO/docs/pluggable_messaging.html | 7 +------ 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/TAO/docs/ORBEndpoint.html b/TAO/docs/ORBEndpoint.html index 44b3aed365a..eecd1c81cc5 100644 --- a/TAO/docs/ORBEndpoint.html +++ b/TAO/docs/ORBEndpoint.html @@ -29,7 +29,7 @@
protocol://V.v@addr1,...,W.w@addrN
- where V.v and W.w are optional protcol + where V.v and W.w are optional protocol versions for each address. An example of an IIOP endpoint is:
iiop://hostname:port @@ -488,7 +488,7 @@

Options are separated from the addresses by a vertical bar - '|'. For instance, if an IIOP endpoint should have + '|'. For instance, if an UIOP endpoint should have a property foobar of 50 associated with it, then the following endpoint specification could be used

@@ -638,11 +638,6 @@ SSLIOP pluggable protocol is used.
-
Ossama Othman
- - -Last modified: Fri Jun 11 16:51:59 PDT 2004 - diff --git a/TAO/docs/pluggable_messaging.html b/TAO/docs/pluggable_messaging.html index 64c41600b20..82c8d6efc04 100644 --- a/TAO/docs/pluggable_messaging.html +++ b/TAO/docs/pluggable_messaging.html @@ -84,7 +84,7 @@

The GIOP_Message_Connector and the derived classes implements the different types of messages that can originate from the client. In GIOP 1.2, with the - specification of Bi-Directional GIOP, this disticntion + specification of Bi-Directional GIOP, this distinction between the client and server would decrease. But, this would be applicable only for GIOP 1.2. The present inheritance model, allows us to implement some of the roles @@ -131,11 +131,6 @@

- -
- -Last modified: Thu Mar 16 11:23:03 CST 2000 - -- cgit v1.2.1 From 9878a2e603a25a10972a9b5eb23c434f22ec5428 Mon Sep 17 00:00:00 2001 From: Johnny Willemsen Date: Tue, 30 Oct 2018 09:02:27 +0100 Subject: Use bool instead of int * TAO/tao/CORBALOC_Parser.cpp: --- TAO/tao/CORBALOC_Parser.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/TAO/tao/CORBALOC_Parser.cpp b/TAO/tao/CORBALOC_Parser.cpp index 63cd20f81ae..35c7976cdd7 100644 --- a/TAO/tao/CORBALOC_Parser.cpp +++ b/TAO/tao/CORBALOC_Parser.cpp @@ -136,7 +136,7 @@ TAO_CORBALOC_Parser::parse_string (const char * ior, CORBA::ORB_ptr orb) size_t len = 0; size_t ndx = endpoints.size(); endpoints.size(ndx+1); - int uiop_compatible = 0; + bool uiop_compatible = false; TAO_ConnectorSetIterator conn_iter = 0; for (conn_iter = conn_reg->begin(); conn_iter != conn_reg->end() && @@ -148,8 +148,7 @@ TAO_CORBALOC_Parser::parse_string (const char * ior, CORBA::ORB_ptr orb) if (endpoints[ndx].profile_) { - endpoints[ndx].obj_key_sep_ = - (*conn_iter)->object_key_delimiter(); + endpoints[ndx].obj_key_sep_ = (*conn_iter)->object_key_delimiter(); uiop_compatible = (endpoints[ndx].obj_key_sep_ == '|'); this->make_canonical (ior,len,endpoints[ndx].prot_addr_); ior += len; @@ -192,7 +191,7 @@ TAO_CORBALOC_Parser::parse_string (const char * ior, CORBA::ORB_ptr orb) if (TAO_debug_level) TAOLIB_ERROR ((LM_ERROR, ACE_TEXT("TAO (%P|%t) - TAO_CORBALOC_Parser::parse_string ") - ACE_TEXT("could not parse from %C\n"), + ACE_TEXT("could not parse from <%C>\n"), ior)); throw ::CORBA::BAD_PARAM (CORBA::OMGVMCID | 10, CORBA::COMPLETED_NO); } // end of while @@ -211,7 +210,7 @@ TAO_CORBALOC_Parser::parse_string (const char * ior, CORBA::ORB_ptr orb) obj_key; const char * str = full_ep.c_str(); endpoints[i].profile_->parse_string (str); - int share = orb->orb_core()->orb_params()->shared_profile(); + int const share = orb->orb_core()->orb_params()->shared_profile(); if (mprofile.give_profile(endpoints[i].profile_, share) != -1) endpoints[i].profile_ = 0; else -- cgit v1.2.1 From 690d9efe48328e7605f3565e76b63bbd4ca8d191 Mon Sep 17 00:00:00 2001 From: Johnny Willemsen Date: Tue, 30 Oct 2018 09:27:08 +0100 Subject: Fixed incorrect classname in logging statement * TAO/tao/Strategies/SHMIOP_Profile.cpp: --- TAO/tao/Strategies/SHMIOP_Profile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TAO/tao/Strategies/SHMIOP_Profile.cpp b/TAO/tao/Strategies/SHMIOP_Profile.cpp index 94c29e1ff66..17a3b19add8 100644 --- a/TAO/tao/Strategies/SHMIOP_Profile.cpp +++ b/TAO/tao/Strategies/SHMIOP_Profile.cpp @@ -386,7 +386,7 @@ TAO_SHMIOP_Profile::create_profile_body (TAO_OutputCDR &encap) const else { TAOLIB_ERROR ((LM_ERROR, - "(%P|%t) TAO - UIOP_Profile::create_profile_body " + "(%P|%t) TAO - SHMIOP_Profile::create_profile_body " "no object key marshalled\n")); } -- cgit v1.2.1 From e56a460c00e39f00c63b4b1192a68cda35f8893f Mon Sep 17 00:00:00 2001 From: Johnny Willemsen Date: Tue, 30 Oct 2018 09:34:19 +0100 Subject: Fixed link to OMG ORT spec --- TAO/docs/Options.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TAO/docs/Options.html b/TAO/docs/Options.html index 88f1d914e10..fe7b40b8814 100644 --- a/TAO/docs/Options.html +++ b/TAO/docs/Options.html @@ -667,7 +667,7 @@ is 0. This option is disabled (0) by default. -ORBListenEndpoints endpoint This option was introduced with the CORBA Object + href="https://www.omg.org/cgi-bin/doc?orbos/01-01-04">Object Reference Template (ORT) specification. It instructs a server ORB to listen for requests on the interface specified by endpoint. When used with Real-time CORBA, the option -- cgit v1.2.1 From 7d6b33e807e9d75a2d28248d0f69b143a18bddc3 Mon Sep 17 00:00:00 2001 From: Johnny Willemsen Date: Tue, 30 Oct 2018 09:51:53 +0100 Subject: New unit test for bugzilla 4213 --- .../Bug_4213_Regression/Bug_4213_Regression.mpc | 35 +++++++ TAO/tests/Bug_4213_Regression/Hello.cpp | 18 ++++ TAO/tests/Bug_4213_Regression/Hello.h | 28 +++++ TAO/tests/Bug_4213_Regression/Test.idl | 17 ++++ TAO/tests/Bug_4213_Regression/client.cpp | 71 +++++++++++++ TAO/tests/Bug_4213_Regression/run_test.pl | 84 +++++++++++++++ TAO/tests/Bug_4213_Regression/server.cpp | 113 +++++++++++++++++++++ 7 files changed, 366 insertions(+) create mode 100644 TAO/tests/Bug_4213_Regression/Bug_4213_Regression.mpc create mode 100644 TAO/tests/Bug_4213_Regression/Hello.cpp create mode 100644 TAO/tests/Bug_4213_Regression/Hello.h create mode 100644 TAO/tests/Bug_4213_Regression/Test.idl create mode 100644 TAO/tests/Bug_4213_Regression/client.cpp create mode 100755 TAO/tests/Bug_4213_Regression/run_test.pl create mode 100644 TAO/tests/Bug_4213_Regression/server.cpp diff --git a/TAO/tests/Bug_4213_Regression/Bug_4213_Regression.mpc b/TAO/tests/Bug_4213_Regression/Bug_4213_Regression.mpc new file mode 100644 index 00000000000..370086e5f73 --- /dev/null +++ b/TAO/tests/Bug_4213_Regression/Bug_4213_Regression.mpc @@ -0,0 +1,35 @@ +// -*- MPC -*- +project(*idl): taoidldefaults { + idlflags += -Sp + IDL_Files { + Test.idl + } + custom_only = 1 +} + +project(*Server): strategies, taoserver, iortable { + after += *idl + Source_Files { + Hello.cpp + server.cpp + } + Source_Files { + TestC.cpp + TestS.cpp + } + IDL_Files { + } +} + +project(*Client): strategies, taoclient { + after += *idl + Source_Files { + client.cpp + } + Source_Files { + TestC.cpp + } + IDL_Files { + } +} + diff --git a/TAO/tests/Bug_4213_Regression/Hello.cpp b/TAO/tests/Bug_4213_Regression/Hello.cpp new file mode 100644 index 00000000000..733fe2bfcaf --- /dev/null +++ b/TAO/tests/Bug_4213_Regression/Hello.cpp @@ -0,0 +1,18 @@ +#include "Hello.h" + +Hello::Hello (CORBA::ORB_ptr orb) + : orb_ (CORBA::ORB::_duplicate (orb)) +{ +} + +char * +Hello::get_string (void) +{ + return CORBA::string_dup ("Hello there!"); +} + +void +Hello::shutdown (void) +{ + this->orb_->shutdown (0); +} diff --git a/TAO/tests/Bug_4213_Regression/Hello.h b/TAO/tests/Bug_4213_Regression/Hello.h new file mode 100644 index 00000000000..8b2124d9fe5 --- /dev/null +++ b/TAO/tests/Bug_4213_Regression/Hello.h @@ -0,0 +1,28 @@ + +#ifndef HELLO_H +#define HELLO_H +#include /**/ "ace/pre.h" + +#include "TestS.h" + +/// Implement the Test::Hello interface +class Hello + : public virtual POA_Test::Hello +{ +public: + /// Constructor + Hello (CORBA::ORB_ptr orb); + + // = The skeleton methods + virtual char * get_string (void); + + virtual void shutdown (void); + +private: + /// Use an ORB reference to convert strings to objects and shutdown + /// the application. + CORBA::ORB_var orb_; +}; + +#include /**/ "ace/post.h" +#endif /* HELLO_H */ diff --git a/TAO/tests/Bug_4213_Regression/Test.idl b/TAO/tests/Bug_4213_Regression/Test.idl new file mode 100644 index 00000000000..6cd2805ea74 --- /dev/null +++ b/TAO/tests/Bug_4213_Regression/Test.idl @@ -0,0 +1,17 @@ + +/// Put the interfaces in a module, to avoid global namespace pollution +module Test +{ + /// A very simple interface + interface Hello + { + /// Return a simple string + string get_string (); + + /// A method to shutdown the ORB + /** + * This method is used to simplify the test shutdown process + */ + oneway void shutdown (); + }; +}; diff --git a/TAO/tests/Bug_4213_Regression/client.cpp b/TAO/tests/Bug_4213_Regression/client.cpp new file mode 100644 index 00000000000..0c84ecddb37 --- /dev/null +++ b/TAO/tests/Bug_4213_Regression/client.cpp @@ -0,0 +1,71 @@ +#include "TestC.h" +#include "ace/Get_Opt.h" +#include "tao/Strategies/advanced_resource.h" + +const ACE_TCHAR *ior = ACE_TEXT ("file://test.ior"); + +int +parse_args (int argc, ACE_TCHAR *argv[]) +{ + ACE_Get_Opt get_opts (argc, argv, ACE_TEXT("k:")); + int c; + + while ((c = get_opts ()) != -1) + switch (c) + { + case 'k': + ior = get_opts.opt_arg (); + break; + + case '?': + default: + ACE_ERROR_RETURN ((LM_ERROR, + "usage: %s " + "-k " + "\n", + argv [0]), + -1); + } + // Indicates successful parsing of the command line + return 0; +} + +int +ACE_TMAIN(int argc, ACE_TCHAR *argv[]) +{ + try + { + CORBA::ORB_var orb = CORBA::ORB_init (argc, argv); + + if (parse_args (argc, argv) != 0) + return 1; + + CORBA::Object_var tmp = orb->string_to_object(ior); + + Test::Hello_var hello = Test::Hello::_narrow(tmp.in ()); + + if (CORBA::is_nil (hello.in ())) + { + ACE_ERROR_RETURN ((LM_DEBUG, + "Nil Test::Hello reference <%s>\n", + ior), + 1); + } + + CORBA::String_var the_string = hello->get_string (); + + ACE_DEBUG ((LM_DEBUG, "(%P|%t) - string returned <%C>\n", + the_string.in ())); + + hello->shutdown (); + + orb->destroy (); + } + catch (const CORBA::Exception& ex) + { + ex._tao_print_exception ("Exception caught:"); + return 1; + } + + return 0; +} diff --git a/TAO/tests/Bug_4213_Regression/run_test.pl b/TAO/tests/Bug_4213_Regression/run_test.pl new file mode 100755 index 00000000000..2ab705ae6b3 --- /dev/null +++ b/TAO/tests/Bug_4213_Regression/run_test.pl @@ -0,0 +1,84 @@ +eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' + & eval 'exec perl -S $0 $argv:q' + if 0; + +# -*- perl -*- + +use lib "$ENV{ACE_ROOT}/bin"; +use PerlACE::TestTarget; + +$status = 0; +$debug_level = '0'; +$cdebug_level = '0'; +foreach $i (@ARGV) { + if ($i eq '-debug') { + $debug_level = '10'; + } + if ($i eq '-cdebug') { + $cdebug_level = '10'; + } +} + +my $server = PerlACE::TestTarget::create_target (1) || die "Create target 1 failed\n"; +my $client = PerlACE::TestTarget::create_target (2) || die "Create target 2 failed\n"; + +my $iorbase = "server.ior"; +my $socket_name = "/tmp/endpoint"; +my $server_iorfile = $server->LocalFile ($iorbase); +my $server_socket = $server->LocalFile ($socket_name); +my $client_iorfile = $client->LocalFile ($iorbase); +my $client_socket = $client->LocalFile ($socket_name); + +$server->DeleteFile($iorbase); +$server->DeleteFile($socket_name); +$client->DeleteFile($iorbase); +$client->DeleteFile($socket_name); + +$SV = $server->CreateProcess ("server", "-ORBdebuglevel $debug_level -o $server_iorfile -ORBEndpoint uiop://$server_socket"); +#$CL = $client->CreateProcess ("client", "-ORBdebuglevel $cdebug_level -k uioploc:///tmp/endpoint|Hello"); +$CL = $client->CreateProcess ("client", "-ORBdebuglevel $cdebug_level -k 'corbaloc:uiop:/tmp/endpoint|Hello'"); +$server_status = $SV->Spawn (); + +if ($server_status != 0) { + print STDERR "ERROR: server returned $server_status\n"; + exit 1; +} + +if ($server->WaitForFileTimed ($iorbase, + $server->ProcessStartWaitInterval()) == -1) { + print STDERR "ERROR: cannot find file <$server_iorfile>\n"; + $SV->Kill (); $SV->TimedWait (1); + exit 1; +} + +if ($server->GetFile ($iorbase) == -1) { + print STDERR "ERROR: cannot retrieve file <$server_iorfile>\n"; + $SV->Kill (); $SV->TimedWait (1); + exit 1; +} +if ($client->PutFile ($iorbase) == -1) { + print STDERR "ERROR: cannot set file <$client_iorfile>\n"; + $SV->Kill (); $SV->TimedWait (1); + exit 1; +} + +$client_status = $CL->SpawnWaitKill ($client->ProcessStartWaitInterval()); + +if ($client_status != 0) { + print STDERR "ERROR: client returned $client_status\n"; + $status = 1; +} + +$server_status = $SV->WaitKill ($server->ProcessStopWaitInterval()); + +if ($server_status != 0) { + print STDERR "ERROR: server returned $server_status\n"; + $status = 1; +} + +$server->DeleteFile($iorbase); +$server->DeleteFile($socket_name); +$client->DeleteFile($iorbase); +$client->DeleteFile($socket_name); + +exit $status; diff --git a/TAO/tests/Bug_4213_Regression/server.cpp b/TAO/tests/Bug_4213_Regression/server.cpp new file mode 100644 index 00000000000..302f1e898c9 --- /dev/null +++ b/TAO/tests/Bug_4213_Regression/server.cpp @@ -0,0 +1,113 @@ +#include "Hello.h" +#include "ace/Get_Opt.h" +#include "ace/OS_NS_stdio.h" +#include "tao/Strategies/advanced_resource.h" +#include "tao/IORTable/IORTable.h" + +const ACE_TCHAR *ior_output_file = ACE_TEXT ("test.ior"); + +int +parse_args (int argc, ACE_TCHAR *argv[]) +{ + ACE_Get_Opt get_opts (argc, argv, ACE_TEXT("o:")); + int c; + + while ((c = get_opts ()) != -1) + switch (c) + { + case 'o': + ior_output_file = get_opts.opt_arg (); + break; + + case '?': + default: + ACE_ERROR_RETURN ((LM_ERROR, + "usage: %s " + "-o " + "\n", + argv [0]), + -1); + } + // Indicates successful parsing of the command line + return 0; +} + +int +ACE_TMAIN(int argc, ACE_TCHAR *argv[]) +{ + try + { + CORBA::ORB_var orb = + CORBA::ORB_init (argc, argv); + + CORBA::Object_var poa_object = + orb->resolve_initial_references("RootPOA"); + + PortableServer::POA_var root_poa = + PortableServer::POA::_narrow (poa_object.in ()); + + if (CORBA::is_nil (root_poa.in ())) + ACE_ERROR_RETURN ((LM_ERROR, + " (%P|%t) Panic: nil RootPOA\n"), + 1); + + PortableServer::POAManager_var poa_manager = root_poa->the_POAManager (); + + if (parse_args (argc, argv) != 0) + return 1; + + Hello *hello_impl = 0; + ACE_NEW_RETURN (hello_impl, + Hello (orb.in ()), + 1); + PortableServer::ServantBase_var owner_transfer(hello_impl); + + PortableServer::ObjectId_var id = + root_poa->activate_object (hello_impl); + + CORBA::Object_var object = root_poa->id_to_reference (id.in ()); + + Test::Hello_var hello = Test::Hello::_narrow (object.in ()); + + CORBA::String_var ior = orb->object_to_string (hello.in ()); + + CORBA::Object_var table_object = orb->resolve_initial_references ("IORTable"); + + IORTable::Table_var adapter = IORTable::Table::_narrow (table_object.in ()); + if (CORBA::is_nil (adapter.in ())) + { + ACE_ERROR ((LM_ERROR, "Nil IORTable\n")); + } + else + { + adapter->bind ("Hello", ior.in ()); + } + + // Output the IOR to the + FILE *output_file= ACE_OS::fopen (ior_output_file, "w"); + if (output_file == 0) + ACE_ERROR_RETURN ((LM_ERROR, + "Cannot open output file for writing IOR: <%s>\n", + ior_output_file), + 1); + ACE_OS::fprintf (output_file, "%s", ior.in ()); + ACE_OS::fclose (output_file); + + poa_manager->activate (); + + orb->run (); + + ACE_DEBUG ((LM_DEBUG, "(%P|%t) server - event loop finished\n")); + + root_poa->destroy (1, 1); + + orb->destroy (); + } + catch (const CORBA::Exception& ex) + { + ex._tao_print_exception ("Exception caught:"); + return 1; + } + + return 0; +} -- cgit v1.2.1 From ffaae9ead794c3e56e9ef2417ddbecd568b61843 Mon Sep 17 00:00:00 2001 From: Johnny Willemsen Date: Tue, 30 Oct 2018 09:52:08 +0100 Subject: Fixed typos --- TAO/docs/pluggable_protocols/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TAO/docs/pluggable_protocols/index.html b/TAO/docs/pluggable_protocols/index.html index cbcea09369a..7f3da9d177b 100644 --- a/TAO/docs/pluggable_protocols/index.html +++ b/TAO/docs/pluggable_protocols/index.html @@ -1317,7 +1317,7 @@ as follows:
uioploc:///tmp/foobar/some_other_object_key

-it then becomes impossible to tell if the rendezous point is ``/tmp'' +it then becomes impossible to tell if the rendezvous point is ``/tmp'' or ``/tmp/foobar,'' and similarly for the object key, hence the need for an object key delimiter other than `/.' @@ -1329,7 +1329,7 @@ that contains the object key delimiter appropriate for the given pluggable proto

create_profile.
This method creates and initializes a profile using -the provided CDR stream. Most of this code is also ``boilerblate.'' As such, +the provided CDR stream. Most of this code is also ``boilerplate.'' As such, it may be factored out in future TAO releases.

make_profile.
-- cgit v1.2.1 From 2c747ee395016bef8bfe0a235063430e580da9c6 Mon Sep 17 00:00:00 2001 From: Johnny Willemsen Date: Tue, 30 Oct 2018 10:02:52 +0100 Subject: Add new bug 4213 unit test * TAO/bin/tao_orb_tests.lst: --- TAO/bin/tao_orb_tests.lst | 1 + 1 file changed, 1 insertion(+) diff --git a/TAO/bin/tao_orb_tests.lst b/TAO/bin/tao_orb_tests.lst index 6e087048ee9..7908e0ef5e7 100644 --- a/TAO/bin/tao_orb_tests.lst +++ b/TAO/bin/tao_orb_tests.lst @@ -209,6 +209,7 @@ TAO/tests/Bug_4010_Regression/run_test.pl: TAO/tests/Bug_4059_Regression/run_test.pl: !MINIMUM !CORBA_E_COMPACT !CORBA_E_MICRO TAO/tests/Bug_4082_Regression/run_test.pl: !MINIMUM !CORBA_E_COMPACT !CORBA_E_MICRO TAO/tests/Bug_4097_Regression/run_test.pl: !MINIMUM !CORBA_E_COMPACT !CORBA_E_MICRRO +TAO/tests/Bug_4213_Regression/run_test.pl: !Win32 TAO/tests/DIOP/run_test.pl: !ST !NO_DIOP !ACE_FOR_TAO !CORBA_E_MICRO TAO/tests/DIOP/run_test_ipv6.pl: IPV6 !ST !NO_DIOP !ACE_FOR_TAO !CORBA_E_MICRO TAO/tests/RTCORBA/Activate_Object_Multiple_ORBs/run_test.pl: !MINIMUM !CORBA_E_COMPACT !CORBA_E_MICRO !ST -- cgit v1.2.1 From 31eec62b48c615088d6c70f0d7ee610d81aa0b9b Mon Sep 17 00:00:00 2001 From: Johnny Willemsen Date: Tue, 30 Oct 2018 10:03:11 +0100 Subject: Only list the invocation which failed without the necesary fix * TAO/tests/Bug_4213_Regression/run_test.pl: --- TAO/tests/Bug_4213_Regression/run_test.pl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/TAO/tests/Bug_4213_Regression/run_test.pl b/TAO/tests/Bug_4213_Regression/run_test.pl index 2ab705ae6b3..4e8dc670d68 100755 --- a/TAO/tests/Bug_4213_Regression/run_test.pl +++ b/TAO/tests/Bug_4213_Regression/run_test.pl @@ -35,8 +35,7 @@ $client->DeleteFile($iorbase); $client->DeleteFile($socket_name); $SV = $server->CreateProcess ("server", "-ORBdebuglevel $debug_level -o $server_iorfile -ORBEndpoint uiop://$server_socket"); -#$CL = $client->CreateProcess ("client", "-ORBdebuglevel $cdebug_level -k uioploc:///tmp/endpoint|Hello"); -$CL = $client->CreateProcess ("client", "-ORBdebuglevel $cdebug_level -k 'corbaloc:uiop:/tmp/endpoint|Hello'"); +$CL = $client->CreateProcess ("client", "-ORBdebuglevel $cdebug_level -k corbaloc:uiop:$server_socket|Hello"); $server_status = $SV->Spawn (); if ($server_status != 0) { -- cgit v1.2.1 From e6499d3d089f100cb9eb859bf6e3bc3334fc369a Mon Sep 17 00:00:00 2001 From: Johnny Willemsen Date: Tue, 30 Oct 2018 10:03:22 +0100 Subject: Layout change * TAO/tests/Bug_4213_Regression/server.cpp: --- TAO/tests/Bug_4213_Regression/server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TAO/tests/Bug_4213_Regression/server.cpp b/TAO/tests/Bug_4213_Regression/server.cpp index 302f1e898c9..8a476508f3e 100644 --- a/TAO/tests/Bug_4213_Regression/server.cpp +++ b/TAO/tests/Bug_4213_Regression/server.cpp @@ -22,7 +22,7 @@ parse_args (int argc, ACE_TCHAR *argv[]) case '?': default: ACE_ERROR_RETURN ((LM_ERROR, - "usage: %s " + "usage: %s " "-o " "\n", argv [0]), -- cgit v1.2.1