2 * @file Bug_3974_Regression_Test.cpp
4 * Reproduces the problems reported in bug 3974
5 * http://bugzilla.dre.vanderbilt.edu/show_bug.cgi?id=3974
8 #include "test_config.h"
10 #include "ace/Dev_Poll_Reactor.h"
11 #include "ace/Select_Reactor.h"
12 #include "ace/TP_Reactor.h"
13 #include "ace/WFMO_Reactor.h"
14 #include "ace/OS_NS_errno.h"
17 testit (ACE_Reactor_Impl
*ri
)
21 ACE_Time_Value
one (1);
22 r
.end_reactor_event_loop ();
23 if ((ret
= r
.handle_events (one
)) != -1)
25 ACE_ERROR ((LM_ERROR
, ACE_TEXT ("Return value %d should be -1\n"), ret
));
28 if (errno
!= ESHUTDOWN
)
31 ACE_TEXT ("errno %d should be %d (ESHUTDOWN)\n"),
42 run_main (int, ACE_TCHAR
*[])
44 ACE_START_TEST (ACE_TEXT ("Bug_3974_Regression_Test"));
47 ACE_Select_Reactor r1
;
50 ACE_ERROR ((LM_ERROR
, ACE_TEXT ("Select_Reactor failed\n")));
57 ACE_ERROR ((LM_ERROR
, ACE_TEXT ("TP_Reactor failed\n")));
65 ACE_ERROR ((LM_ERROR
, ACE_TEXT ("WFMO_Reactor failed\n")));
68 #endif /* ACE_WIN32 */
70 #if defined (ACE_HAS_EVENT_POLL) || defined (ACE_HAS_DEV_POLL)
71 ACE_Dev_Poll_Reactor r4
;
74 ACE_ERROR ((LM_ERROR
, ACE_TEXT ("Dev_Poll_Reactor failed\n")));
77 #endif /* ACE_HAS_EVENT_POLL || ACE_HAS_DEV_POLL */