diff options
author | elliott_c <elliott_c@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2007-08-21 11:38:01 +0000 |
---|---|---|
committer | elliott_c <elliott_c@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2007-08-21 11:38:01 +0000 |
commit | 4aaa804bd72e313f953e3b2e371154acb1ccacba (patch) | |
tree | 1b0214334f7a890db9b644e02298aa1c81a78920 /TAO/orbsvcs/tests/Notify/MC/Structured_Consumer.cpp | |
parent | 4580e37fc817d71b858d1baf04e0247ae83920a3 (diff) | |
download | ATCD-4aaa804bd72e313f953e3b2e371154acb1ccacba.tar.gz |
ChangeLogTag: Tue Aug 21 11:37:02 UTC 2007 Chad Elliott <elliott_c@ociweb.com>
Diffstat (limited to 'TAO/orbsvcs/tests/Notify/MC/Structured_Consumer.cpp')
-rw-r--r-- | TAO/orbsvcs/tests/Notify/MC/Structured_Consumer.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/TAO/orbsvcs/tests/Notify/MC/Structured_Consumer.cpp b/TAO/orbsvcs/tests/Notify/MC/Structured_Consumer.cpp index f39b20bbbe7..9d98550261c 100644 --- a/TAO/orbsvcs/tests/Notify/MC/Structured_Consumer.cpp +++ b/TAO/orbsvcs/tests/Notify/MC/Structured_Consumer.cpp @@ -6,6 +6,7 @@ #include "ace/Get_Opt.h" #include "ace/OS_NS_unistd.h" +#include "ace/OS_NS_stdio.h" #include "Notify_Structured_Push_Consumer.h" #include "MonitorTestInterfaceC.h" @@ -17,6 +18,7 @@ // ****************************************************************** static const char* ior = "file://test_monitor.ior"; +static const char* ready = "ready.txt"; static unsigned int expected = 2000; static Notify_Structured_Push_Consumer* consumer_1 = 0; @@ -123,6 +125,14 @@ int main (int argc, char* argv[]) ACE_DEBUG ((LM_DEBUG, "\nConsumer waiting for events...\n")); + FILE* ready_file = ACE_OS::fopen (ready, "w"); + if (ready_file == 0) + ACE_ERROR_RETURN ((LM_ERROR, + "Cannot open ready file for writing\n"), + 1); + ACE_OS::fprintf (ready_file, "ready\n"); + ACE_OS::fclose (ready_file); + client.ORB_run (); ACE_DEBUG ((LM_DEBUG, "Consumer done.\n")); |