Compiler projects using llvm
import lit.formats
config.name = 'googletest-timeout'
config.test_format = lit.formats.GoogleTest('DummySubDir', 'Test')

configSetTimeout = lit_config.params.get('set_timeout', '0')
config.environment['GTEST_FILTER'] = lit_config.params.get('gtest_filter')

if configSetTimeout == '1':
    # Try setting the max individual test time in the configuration
    lit_config.maxIndividualTestTime = 1