[lit] Implement support of per test timeout in lit.
[oota-llvm.git] / utils / lit / tests / Inputs / googletest-timeout / lit.cfg
1 import lit.formats
2 config.name = 'googletest-timeout'
3 config.test_format = lit.formats.GoogleTest('DummySubDir', 'Test')
4
5 configSetTimeout = lit_config.params.get('set_timeout', '0')
6
7 if configSetTimeout == '1':
8     # Try setting the max individual test time in the configuration
9     lit_config.maxIndividualTestTime = 1