The Gaudi Framework
v25r6p1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
signal_handler_test.py
Go to the documentation of this file.
1
# -*- coding: utf-8 -*-
2
import
BaseTest
3
from
BaseTest
import
*
4
5
class
Test
(
BaseTest
):
6
7
def
__init__
(self):
8
BaseTest.__init__(self)
9
self.
name
= os.path.basename(__file__)[:-5]
10
self.
program
=
"gaudirun.py"
11
self.
exit_code
=130
12
self.
options
=
"""
13
from Gaudi.Configuration import *
14
15
from Configurables import GaudiTesting__SignallingAlg as SignallingAlg
16
from Configurables import Gaudi__Utils__StopSignalHandler as StopSignalHandler
17
18
importOptions("Common.opts")
19
alg = SignallingAlg(Signal = 2) # SIGINT
20
#StopSignalHandler(Signals = ["SIGINT", "SIGXCPU"]) # this is the default
21
22
app = ApplicationMgr(TopAlg = [alg],
23
EvtSel = "NONE", EvtMax = 5,
24
StopOnSignal = True)
25
26
MessageSvc().setDebug.append("EventLoopMgr")"""
27
28
def
validator
(self,stdout,stderr, result, causes, reference, error_reference):
29
self.
findReferenceBlock
(
"""
30
GaudiTesting::S... INFO 3 events to go
31
GaudiTesting::S... INFO 2 events to go
32
GaudiTesting::S... INFO 1 events to go
33
GaudiTesting::S... INFO Raising signal now
34
Gaudi::Utils::S...WARNING Received signal 'SIGINT' (2, Interrupt)
35
Gaudi::Utils::S...WARNING Scheduling a stop
36
EventLoopMgr SUCCESS Terminating event processing loop due to a stop scheduled by an incident listener
37
ApplicationMgr INFO Application Manager Stopped successfully
38
"""
)
newFormat.signal_handler_test.Test.__init__
def __init__
Definition:
signal_handler_test.py:7
BaseTest.BaseTest.program
program
Definition:
BaseTest.py:19
BaseTest.BaseTest.exit_code
exit_code
Definition:
BaseTest.py:26
BaseTest.BaseTest
Definition:
BaseTest.py:17
newFormat.signal_handler_test.Test.validator
def validator
Definition:
signal_handler_test.py:28
BaseTest.BaseTest.findReferenceBlock
def findReferenceBlock
Definition:
BaseTest.py:178
BaseTest.BaseTest.options
options
Definition:
BaseTest.py:23
BaseTest.BaseTest.name
name
Definition:
BaseTest.py:34
newFormat.signal_handler_test.Test
Definition:
signal_handler_test.py:5
patches
QMTProject
Code
newFormat
signal_handler_test.py
Generated on Tue Dec 9 2014 16:33:09 for The Gaudi Framework by
1.8.7