From c8d5d9665e9bd9891f2ac67c5a53221ff6b61ac2 Mon Sep 17 00:00:00 2001 From: schmidt Date: Wed, 11 Dec 1996 02:55:19 +0000 Subject: foo --- tests/Service_Config_Test.cpp | 18 +++++++++++++----- 1 file 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; -- cgit v1.2.1