# Test that the ParameterSetDescription validation
# is being run by defining an illegal parameter.
# An exception should be thrown and the job stops.

import FWCore.ParameterSet.Config as cms

process = cms.Process("TEST")

process.load("FWCore.MessageService.MessageLogger_cfi")
process.MessageLogger.cerr.enableStatistics = False

# Intentionally define a parameter that does not
# exist in the ParameterSetDescription which
# should result in an exception.
process.source = cms.Source("EmptySource")

process.DummyService = cms.Service("DummyService",
  value = cms.int32(11),
  noParameterWithThisName = cms.int32(11)
)

process.maxEvents = cms.untracked.PSet(
  input = cms.untracked.int32(1)
)
