summaryrefslogtreecommitdiff
path: root/TAO/tests/UNKNOWN_Exception/README
blob: ee867ed21f765e7e551b5c8feafb49aa1a24af77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# $Id$

Description:

This is a test for UNKNOWN exceptions raised by the server.  There are
two places where this example tests for UNKNOWN exceptions: (a)
UNKNOWN exception raised in an upcall and (b) UNKNOWN exception raised
while a servant is being cleaned up after deactivation.  The number of
outstanding requests in the POA are checked after each unit of work
performed by the server.  The assumption is that if the number of
outstanding requests are correct, then the server correctly handled
the UNKNOWN exceptions.

Expected output:

A successful run is one without any asserts.  

The server should say:

- test_i::normal_method() called

- test_i::unknown_exception_in_method() called
  Unknown exception being generated: should be propagated to the client

- test_i::unknown_exception_during_deactivation() called
  Unknown exception being generated: should be gobbled up by the POA


And the client should say:

CORBA::UNKNOWN was thrown by the server during test::unknown_exception_in_method()
        This is expected behavior