summaryrefslogtreecommitdiff
path: root/TAO/tests/RTScheduling/VoidData/test_client.cpp
blob: 087080ddbbaf643bd534d582f5ac9583b4a5d62d (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
33
34
//$Id$
#include "tao/RTScheduling/RTScheduler.h"
#include "testC.h"
#include "test.h"

int
main (int argc, char* argv [])
{
  CORBA::ORB_var orb;
  ACE_TRY_NEW_ENV
    {
      orb = CORBA::ORB_init (argc,
                             argv,
                             ""
                             ACE_ENV_ARG_PARAMETER);
      ACE_TRY_CHECK;

      test_impl foo_i;
      int something = 28;
      foo_i.bar ((CORBA::VoidData) &something);
    }
  ACE_CATCHANY
    {
      ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
                           "Caught exception:");

      orb->shutdown ();
      orb->destroy ();
      return 0;
    }
  ACE_ENDTRY;

  return 0;
}