diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1996-12-11 02:55:19 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1996-12-11 02:55:19 +0000 |
commit | c8d5d9665e9bd9891f2ac67c5a53221ff6b61ac2 (patch) | |
tree | dd8932208d7d2cb37b2d02813e3a99c5963639b7 | |
parent | 7786679837dbf18f8f2f2292b1a4d69f2a4cc837 (diff) | |
download | ATCD-c8d5d9665e9bd9891f2ac67c5a53221ff6b61ac2.tar.gz |
foo
-rw-r--r-- | tests/Service_Config_Test.cpp | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/tests/Service_Config_Test.cpp b/tests/Service_Config_Test.cpp index 6c6a36bb42a..f86f1bbdf03 100644 --- a/tests/Service_Config_Test.cpp +++ b/tests/Service_Config_Test.cpp @@ -20,17 +20,25 @@ #include "ace/Service_Config.h" #include "test_config.h" -int -main (int argc, char *argv[]) +static void +run_test (int argc, char *argv[]) { - ACE_START_TEST ("Service_Config_Test"); - ACE_Time_Value tv (argc > 1 ? atoi (argv[1]) : 2); - + // 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; |