diff options
Diffstat (limited to 'TAO/tests/ORB_init/README')
-rw-r--r-- | TAO/tests/ORB_init/README | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/TAO/tests/ORB_init/README b/TAO/tests/ORB_init/README deleted file mode 100644 index ec8b35f574f..00000000000 --- a/TAO/tests/ORB_init/README +++ /dev/null @@ -1,65 +0,0 @@ -$Id$ - -ORB_init Test -------------- - -The ORB_init test simply verifies that the CORBA::ORB_init() call -behaves as defined in the OMG CORBA specification. Here are the -behaviors it tests: - - 1. Multiple ORB_init calls with the same ORBid but in - different scopes should return the same ORB. - - { - CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, "my_orb"); - } - { - CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, "my_orb"); - } - - In both scopes, "my_orb" refers to the same ORB. - - 2. The ORB must be explicitly destroyed in order to free the - ORBid "my_orb" for use by another ORB. - - { - CORBA::ORB_var orb1 = CORBA::ORB_init (argc, argv, "my_orb"); - orb1->destroy(); - - // "my_orb" ORB identifier can now be used to identify - // another ORB. - CORBA::ORB_var orb2 = CORBA::ORB_init (argc, argv, "my_orb"); - } - - 3. CORBA system exceptions should be available even after the - last ORB is released. - - try - { - CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, "my_orb"); - // Exception is thrown - } - catch (CORBA::System_Exception &exc) - { - // Do something with exc. - } - -Simply run the `ORB_init' program with out any argument to begin the -test. The correct output is: - - The ORB <my_orb> was successfully returned from a second - call to CORBA::ORB_init() after it was released in - a previous scope. - - - A new ORB with ORBid <my_orb> was successfully returned - from a second call to CORBA::ORB_init() after the - first ORB with the same ORBid was destroyed. - - - Successfully caught CORBA system exception after the - last ORB was released with the following repository ID: - IDL:omg.org/CORBA/OBJECT_NOT_EXIST:1.0 - This exception was expected. It is safe to ignore it. - - ORB_init test completed successfully. |