Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:28:33

0001 # Test that the ParameterSetDescription validation
0002 # is being run by defining an illegal parameter.
0003 # An exception should be thrown and the job stops.
0004 
0005 import FWCore.ParameterSet.Config as cms
0006 
0007 process = cms.Process("TEST")
0008 
0009 process.load("FWCore.MessageService.MessageLogger_cfi")
0010 process.MessageLogger.cerr.enableStatistics = False
0011 
0012 # Intentionally define a parameter that does not
0013 # exist in the ParameterSetDescription which
0014 # should result in an exception.
0015 process.source = cms.Source("EmptySource")
0016 
0017 process.DummyService = cms.Service("DummyService",
0018   value = cms.int32(11),
0019   noParameterWithThisName = cms.int32(11)
0020 )
0021 
0022 process.maxEvents = cms.untracked.PSet(
0023   input = cms.untracked.int32(1)
0024 )