Skip to content

Commit

Permalink
Merge pull request #577 from jwillemsen/jwi-wfmo-versioned
Browse files Browse the repository at this point in the history
Fixed errors with versioned namespace builds
  • Loading branch information
jwillemsen committed Feb 24, 2018
2 parents 6dc76be + 250aef2 commit b93453d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
6 changes: 4 additions & 2 deletions ACE/examples/Reactor/WFMO_Reactor/Exceptions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@

#include "ace/WFMO_Reactor.h"



class Event_Handler : public ACE_Event_Handler
{
public:
Expand Down Expand Up @@ -55,6 +53,8 @@ class Event_Handler : public ACE_Event_Handler
ACE_Manual_Event event_;
};

ACE_BEGIN_VERSIONED_NAMESPACE_DECL

class ACE_WFMO_Reactor_Test
{
public:
Expand All @@ -81,6 +81,8 @@ class ACE_WFMO_Reactor_Test
}
};

ACE_END_VERSIONED_NAMESPACE_DECL

int
ACE_TMAIN (int, ACE_TCHAR *[])
{
Expand Down
20 changes: 10 additions & 10 deletions ACE/examples/Reactor/WFMO_Reactor/Suspended_Removals.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
#include "ace/Reactor.h"
#include "ace/WFMO_Reactor.h"



class Event_Handler : public ACE_Event_Handler
{
public:
Expand All @@ -31,6 +29,8 @@ class Event_Handler : public ACE_Event_Handler
ACE_Event event_;
};

ACE_BEGIN_VERSIONED_NAMESPACE_DECL

class ACE_WFMO_Reactor_Test
{
public:
Expand All @@ -47,16 +47,16 @@ class ACE_WFMO_Reactor_Test
}
};

ACE_END_VERSIONED_NAMESPACE_DECL

int
ACE_TMAIN (int, ACE_TCHAR *[])
{
Event_Handler handler;
ACE_WFMO_Reactor reactor;
ACE_Reactor base_reactor (&reactor);

//FUZZ: disable check_for_lack_ACE_OS
ACE_Time_Value time (1);
//FUZZ: enable check_for_lack_ACE_OS
ACE_Time_Value sleep_sleep_time (1);

int result =
reactor.register_handler (&handler);
Expand All @@ -74,7 +74,7 @@ ACE_TMAIN (int, ACE_TCHAR *[])
ACE_WFMO_Reactor_Test::check_for_valid_state (reactor,
1, 0, 0, 1);

result = base_reactor.run_reactor_event_loop (time);
result = base_reactor.run_reactor_event_loop (sleep_time);
ACE_TEST_ASSERT (result != -1);

ACE_WFMO_Reactor_Test::check_for_valid_state (reactor,
Expand All @@ -87,7 +87,7 @@ ACE_TMAIN (int, ACE_TCHAR *[])
ACE_WFMO_Reactor_Test::check_for_valid_state (reactor,
1, 0, 0, 0);

result = base_reactor.run_reactor_event_loop (time);
result = base_reactor.run_reactor_event_loop (sleep_time);
ACE_TEST_ASSERT (result != -1);

ACE_WFMO_Reactor_Test::check_for_valid_state (reactor,
Expand All @@ -109,7 +109,7 @@ ACE_TMAIN (int, ACE_TCHAR *[])
ACE_WFMO_Reactor_Test::check_for_valid_state (reactor,
0, 0, 0, 1);

result = base_reactor.run_reactor_event_loop (time);
result = base_reactor.run_reactor_event_loop (sleep_time);
ACE_TEST_ASSERT (result != -1);

ACE_WFMO_Reactor_Test::check_for_valid_state (reactor,
Expand All @@ -129,7 +129,7 @@ ACE_TMAIN (int, ACE_TCHAR *[])
ACE_WFMO_Reactor_Test::check_for_valid_state (reactor,
1, 1, 0, 0);

result = base_reactor.run_reactor_event_loop (time);
result = base_reactor.run_reactor_event_loop (sleep_time);
ACE_TEST_ASSERT (result != -1);

ACE_WFMO_Reactor_Test::check_for_valid_state (reactor,
Expand All @@ -151,7 +151,7 @@ ACE_TMAIN (int, ACE_TCHAR *[])
ACE_WFMO_Reactor_Test::check_for_valid_state (reactor,
0, 0, 0, 1);

result = base_reactor.run_reactor_event_loop (time);
result = base_reactor.run_reactor_event_loop (sleep_time);
ACE_TEST_ASSERT (result != -1);

ACE_WFMO_Reactor_Test::check_for_valid_state (reactor,
Expand Down

0 comments on commit b93453d

Please sign in to comment.