Salome HOME
updated copyright message
[modules/kernel.git] / src / KernelHelpers / KernelServices.cxx
index e2ef5b3a4ccd3c6cf6bca0d2d630d85d21b9b468..1626958c92b445ae036c7b292293c73af3006abb 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2021-2022  CEA/DEN, EDF R&D
+// Copyright (C) 2021-2023  CEA, EDF
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -33,3 +33,12 @@ std::string RetrieveCompoInternal(const std::string& compoName)
     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;
+}