~ubuntu-branches/ubuntu/breezy/ace/breezy

« back to all changes in this revision

Viewing changes to TAO/orbsvcs/tests/InterfaceRepo/IDL3_Test/client.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad, Benjamin Montgomery, Adam Conrad
  • Date: 2005-09-18 22:51:38 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 sarge) (0.1.2 woody)
  • Revision ID: james.westby@ubuntu.com-20050918225138-seav22q6fyylb536
Tags: 5.4.7-3ubuntu1
[ Benjamin Montgomery ]
* Added a patch for amd64 and powerpc that disables the compiler
  option -fvisibility-inlines-hidden

[ Adam Conrad ]
* Added DPATCH_OPTION_CPP=1 to debian/patches/00options to make
  Benjamin's above changes work correctly with dpatch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// -*- C++ -*-
2
 
// client.cpp,v 1.4 2003/08/05 22:35:04 parsons Exp
3
 
 
4
 
#include "idl3_client.h"
5
 
 
6
 
ACE_RCSID (Application_Test, 
7
 
           client, 
8
 
           "client.cpp,v 1.4 2003/08/05 22:35:04 parsons Exp")
9
 
 
10
 
int
11
 
main (int argc, char *argv[])
12
 
{
13
 
  IDL3_Client client;
14
 
 
15
 
  ACE_TRY_NEW_ENV
16
 
    {
17
 
      if (client.init (argc,
18
 
                       argv
19
 
                       ACE_ENV_ARG_PARAMETER)
20
 
           == -1)
21
 
        {
22
 
          return 1;
23
 
        }
24
 
      else
25
 
        {
26
 
          int status = client.run (ACE_ENV_SINGLE_ARG_PARAMETER);
27
 
          ACE_TRY_CHECK;
28
 
 
29
 
          const char *result_string = status ? "test failed" : "test ok";
30
 
 
31
 
          ACE_DEBUG ((LM_DEBUG,
32
 
                      "%s\n",
33
 
                      result_string));
34
 
 
35
 
          if (status == -1)
36
 
            {
37
 
              return 1;
38
 
            }
39
 
        }
40
 
    }
41
 
  ACE_CATCHANY
42
 
    {
43
 
      ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
44
 
                           "Client Exception");
45
 
      return -1;
46
 
    }
47
 
  ACE_ENDTRY;
48
 
 
49
 
  return 0;
50
 
}