summaryrefslogtreecommitdiff
path: root/TAO/tests/ORB_Local_Config/Limits/Test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/ORB_Local_Config/Limits/Test.cpp')
-rw-r--r--TAO/tests/ORB_Local_Config/Limits/Test.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/TAO/tests/ORB_Local_Config/Limits/Test.cpp b/TAO/tests/ORB_Local_Config/Limits/Test.cpp
new file mode 100644
index 00000000000..c0b3b4ecc75
--- /dev/null
+++ b/TAO/tests/ORB_Local_Config/Limits/Test.cpp
@@ -0,0 +1,19 @@
+// $Id$
+
+#include "tao/CORBANAME_Parser.h"
+#include "tao/CORBALOC_Parser.h"
+
+#include "Service_Configuration_Per_ORB.h"
+
+// @brief The size of a repository is pre-determined and can not be exceeded
+
+int
+run_main (int , ACE_TCHAR *[])
+{
+ ACE_Service_Gestalt one(1); // Room for just one ...
+ ACE_ASSERT (0 == one.process_directive (ace_svc_desc_TAO_CORBANAME_Parser));
+ ACE_ASSERT (-1 == one.process_directive (ace_svc_desc_TAO_CORBALOC_Parser));
+ ACE_ASSERT (ENOSPC == errno);
+ ACE_DEBUG ((LM_DEBUG, "%p\n", "\tReporting an expected error: "));
+ return 0;
+}