3 This test confirms that the reference count for a valuetype factory is decremented when the
4 valuetype factory is unregistered via ORB::unregister_value_factory(). Before, the reference
5 count was not being decremented, leaving the factory in memory. The test registers and
6 unregisters a valuetype factory and then removes its own reference to it, and checks that
7 the valuetype factory destructor is called.
9 _Expected Success Output_
11 Registering factory reference
12 Unregistering factory reference
13 Value factory destructor flag: 0
14 Actively removing reference
15 MessageFactory: destructor invoked
16 Value factory destructor flag: 1
17 Shutting down / destroying ORB
18 Test passed: value factory destructor was invoked as expected
20 _Expected Regression Output_
22 Registering factory reference
23 Unregistering factory reference
24 Value factory destructor flag: 0
25 Actively removing reference
26 Value factory destructor flag: 0
27 Shutting down / destroying ORB
28 Test failed: value factory destructor was not invoked