Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:12:47

0001 # Unit test configuration file for FlushMessageLog in MessageLogger service:
0002 #   Tests effect of LogFlush by cfg-configurable choices of how many 
0003 #   messages to use to clog the queue and whether or not FlushMessageLog
0004 #   is invoked.  Under normal testing, it will invoke FlushMessageLog in
0005 #   a situation where its absence would result in different output.
0006 
0007 import FWCore.ParameterSet.Config as cms
0008 
0009 process = cms.Process("TEST")
0010 
0011 import FWCore.Framework.test.cmsExceptionsFatal_cff
0012 process.options = FWCore.Framework.test.cmsExceptionsFatal_cff.options
0013 
0014 process.MessageLogger = cms.Service("MessageLogger",
0015     default = cms.untracked.PSet(
0016         FwkTest = cms.untracked.PSet(
0017             limit = cms.untracked.int32(0)
0018         )
0019     ),
0020     cerr = cms.untracked.PSet(
0021         enable = cms.untracked.bool(False)
0022     ),
0023     files = cms.untracked.PSet(
0024         u22_warnings = cms.untracked.PSet(
0025             threshold = cms.untracked.string('WARNING'),
0026             noTimeStamps = cms.untracked.bool(True),
0027             FwkTest = cms.untracked.PSet(
0028                 limit = cms.untracked.int32(0)
0029             ),
0030         )
0031     )
0032 )
0033 
0034 process.maxEvents = cms.untracked.PSet(
0035     input = cms.untracked.int32(1)
0036 )
0037 
0038 process.source = cms.Source("EmptySource")
0039 
0040 process.sendSomeMessages = cms.EDAnalyzer("UnitTestClient_P",
0041     queueFillers = cms.untracked.int32(500),
0042     useLogFlush = cms.untracked.bool(True)
0043 )
0044 
0045 process.p = cms.Path(process.sendSomeMessages)