diff options
Diffstat (limited to 'TAO/orbsvcs/tests/Security/Crash_Test/test_i.cpp')
-rw-r--r-- | TAO/orbsvcs/tests/Security/Crash_Test/test_i.cpp | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/TAO/orbsvcs/tests/Security/Crash_Test/test_i.cpp b/TAO/orbsvcs/tests/Security/Crash_Test/test_i.cpp new file mode 100644 index 00000000000..f1eff4cd4bb --- /dev/null +++ b/TAO/orbsvcs/tests/Security/Crash_Test/test_i.cpp @@ -0,0 +1,40 @@ +// $Id$ + +#include "test_i.h" + +#if !defined(__ACE_INLINE__) +#include "test_i.i" +#endif /* __ACE_INLINE__ */ + +ACE_RCSID (Send_File, + test_i, + "$Id$") + +void +Simple_Server_i::send_line (const char * + ACE_ENV_ARG_DECL_NOT_USED) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + + /* + static unsigned long count = 0; + + count++; + + if (count == 1) + { + ACE_DEBUG ((LM_DEBUG, + "Executed 128 requests. Now it's time to crash!\n")); + ACE_OS::abort (); + } + */ + + // ACE_DEBUG ((LM_DEBUG, "%s\n", line)); +} + +void +Simple_Server_i::shutdown (ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + this->orb_->shutdown (0); +} |