CORBA::String_var ior = orb->object_to_string(obj);
return std::string(ior.in());
}
+
+/*!
+ * This method generates a SIGSEGV to test robustness of higher level layers.
+ */
+void GenerateViolentMemoryFaultForTestPurpose()
+{
+ double *a = nullptr;
+ *a = 0;
+}
void RegisterCompoInternal(const std::string& compoName, const std::string& compoIOR);
std::string RetrieveCompoInternal(const std::string& compoName);
+void GenerateViolentMemoryFaultForTestPurpose();
#endif
{
void RegisterCompoInternal(const std::string& compoName, const std::string& compoIOR);
std::string RetrieveCompoInternal(const std::string& compoName);
+ void GenerateViolentMemoryFaultForTestPurpose();
}
%pythoncode %{