summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/Security/Crash_Test/test_i.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/tests/Security/Crash_Test/test_i.cpp')
-rw-r--r--TAO/orbsvcs/tests/Security/Crash_Test/test_i.cpp40
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..22b1fd18f1e
--- /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.inl"
+#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);
+}