summaryrefslogtreecommitdiff
path: root/tests/Service_Config_Test.cpp
blob: f86f1bbdf032c89a9b7d0dbe5383b17e10505e3e (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
35
36
37
38
39
40
41
42
43
44
45
// $Id$

// ============================================================================
//
// = LIBRARY
//    tests
// 
// = FILENAME
//    Service_Config_Test.cpp
//
// = DESCRIPTION
//      This is a simple test to make sure the Service_Configurator is
//      working correctly. 
//
// = AUTHOR
//    Doug Schmidt
// 
// ============================================================================

#include "ace/Service_Config.h"
#include "test_config.h"

static void
run_test (int argc, char *argv[])
{
  // We need this scope to make sure
  ACE_Service_Config daemon;
  
  daemon.open (argc, argv);

  ACE_Time_Value tv (argc > 1 ? atoi (argv[1]) : 2);

  ACE_ASSERT (daemon.run_reactor_event_loop (tv) == 0);
}

int 
main (int argc, char *argv[])
{
  ACE_START_TEST ("Service_Config_Test");

  run_test (argc, argv);

  ACE_END_TEST;
  return 0;
}