From 76cb1305c9cb47dcb50845acfd50037c6fa821e2 Mon Sep 17 00:00:00 2001 From: rahuel Date: Tue, 15 Feb 2005 12:35:07 +0000 Subject: [PATCH] New tests of SIGSEGV management --- examples/SIGSEGV.py | 8 ++++++++ examples/SIGSEGVTUI.py | 7 +++++++ examples/SIGSEGV_Swig.py | 3 +++ 3 files changed, 18 insertions(+) create mode 100644 examples/SIGSEGV.py create mode 100644 examples/SIGSEGVTUI.py create mode 100644 examples/SIGSEGV_Swig.py diff --git a/examples/SIGSEGV.py b/examples/SIGSEGV.py new file mode 100644 index 0000000..db00dc9 --- /dev/null +++ b/examples/SIGSEGV.py @@ -0,0 +1,8 @@ +from LifeCycleCORBA import * +orb = CORBA.ORB_init([''], CORBA.ORB_ID) +lcc = LifeCycleCORBA(orb) +import SIGNALSComponent_idl +SIGNALSComponent = lcc.FindOrLoadComponent('FactoryServer','SIGNALSComponent') +SIGNALSComponent.SIGSEGVfunc() +SIGNALSComponent.ping() + diff --git a/examples/SIGSEGVTUI.py b/examples/SIGSEGVTUI.py new file mode 100644 index 0000000..ed168ab --- /dev/null +++ b/examples/SIGSEGVTUI.py @@ -0,0 +1,7 @@ +import salome +orb = salome.CORBA.ORB_init([''], salome.CORBA.ORB_ID) +lcc = salome.LifeCycleCORBA(orb) +import SIGNALSComponent_idl +SIGNALSComponent = lcc.FindOrLoadComponent('FactoryServer','SIGNALSComponent') +SIGNALSComponent.SIGSEGVfunc() +SIGNALSComponent.ping() diff --git a/examples/SIGSEGV_Swig.py b/examples/SIGSEGV_Swig.py new file mode 100644 index 0000000..1757de2 --- /dev/null +++ b/examples/SIGSEGV_Swig.py @@ -0,0 +1,3 @@ +import libSIGNALSComponent_Swig +s = libSIGNALSComponent_Swig.SIGNALSComponentEngine() +s.SIGSEGVfunc() -- 2.39.2