=default for generated implementation copy ctor
[ACE_TAO.git] / TAO / tests / RTCORBA / Client_Propagated / README
blob342dbd49c8e4dab619215f18e3d04d9973a28721
3 This is a unit test for RTCORBA::CLIENT_PROPAGATED priority model.
5 Scenario:
6 --------
8 Server creates a POA with RTCORBA::CLIENT_PROPAGATED priority model
9 policy and registers a servant with it.  Client obtains the object
10 reference and verifies that it does have the RTCORBA::CLIENT_PROPAGATED
11 priority model set.  Client then performs several invocations on the
12 object, changing the priority of its thread before each.  The client
13 also passes its thread priority as an argument to each operation.
14 For each invocation, the servant checks that it's thread priority is
15 equivalent to the priority of the invoking client thread, which we know
16 from the operation argument.  In addition, the server verifies that
17 it's starting thread priority (before entering ORB event loop) is the
18 same as it's ending thread priority (ater ORB shutdown), to insure
19 that the thread servicing the requests at client propagated priority
20 is always returned to its original priority.
22 To run (on Unix):
23 -------
24 $./server
25 $./client
27 Options:
28 --------
29 server [-o ior_output_file]
30 client [-k server_ior]
32 Expected output:
33 ----------------
34 Client executable produces no output (unless there are errors).
35 Server should produces the following if there are no errors (the
36 priority numbers may differ from platform to platform):
38 $server
39 Activated as <IOR:010000000d00000049444c3a546573743a312e300000000001000000000000
40 00a6000000010102cd15000000636f727269646f2e63732e777573746c2e65647500cde304230000
41 0014010f004e5354c5c9a539bd0105000100000001000000000000000100000001000000cd040000
42 00000000000800000001cdcdcd004f4154010000001400000001cdcdcd0100010000000000090101
43 0000000000004f41540400000001cd0000020000001a00000001cdcdcd01000000020041540a0000
44 0001cdcdcd000000000000>
46 Client priority: 0  Servant thread priority: 0
47 Client priority: 1  Servant thread priority: 1
48 Client priority: 2  Servant thread priority: 2
49 Server ORB event loop finished
50 Final priority of the servant thread = its initial priority