forked from OSchip/llvm-project
[test] Add timeout to API tests.
Before the reorganiziation, the API tests were inheriting the timeout from the top-level lit file. Now that this is no longer the case, the lldb-api test suite needs to set its own timeout. llvm-svn: 374435
This commit is contained in:
parent
7cc1fac8c9
commit
0a186d0f64
|
@ -61,6 +61,15 @@ for cachedir in [config.clang_module_cache, config.lldb_module_cache]:
|
|||
print("Deleting module cache at %s."%cachedir)
|
||||
shutil.rmtree(cachedir)
|
||||
|
||||
# Set a default per-test timeout of 10 minutes. Setting a timeout per test
|
||||
# requires that killProcessAndChildren() is supported on the platform and
|
||||
# lit complains if the value is set but it is not supported.
|
||||
supported, errormsg = lit_config.maxIndividualTestTimeIsSupported
|
||||
if supported:
|
||||
lit_config.maxIndividualTestTime = 600
|
||||
else:
|
||||
lit_config.warning("Could not set a default per-test timeout. " + errormsg)
|
||||
|
||||
# Build dotest command.
|
||||
dotest_cmd = [config.dotest_path]
|
||||
dotest_cmd.extend(config.dotest_args_str.split(';'))
|
||||
|
|
|
@ -39,9 +39,7 @@ config.test_exec_root = os.path.join(config.lldb_obj_root, 'test')
|
|||
|
||||
|
||||
llvm_config.use_default_substitutions()
|
||||
|
||||
toolchain.use_lldb_substitutions(config)
|
||||
|
||||
toolchain.use_support_substitutions(config)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue