summaryrefslogtreecommitdiffstats
path: root/lldb/test/API
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-10-10 19:51:50 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2019-10-10 19:51:50 +0000
commit0a186d0f64b6d57ec50ffce41f470314cc5b2250 (patch)
tree016cb77802d0e315aca2ee9db53720707d81c0b4 /lldb/test/API
parent7cc1fac8c9a1a4c9f9b146321177b8a4cb29b558 (diff)
downloadbcm5719-llvm-0a186d0f64b6d57ec50ffce41f470314cc5b2250.tar.gz
bcm5719-llvm-0a186d0f64b6d57ec50ffce41f470314cc5b2250.zip
[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
Diffstat (limited to 'lldb/test/API')
-rw-r--r--lldb/test/API/lit.cfg9
1 files changed, 9 insertions, 0 deletions
diff --git a/lldb/test/API/lit.cfg b/lldb/test/API/lit.cfg
index 26286ed5c50..f29d9047e24 100644
--- a/lldb/test/API/lit.cfg
+++ b/lldb/test/API/lit.cfg
@@ -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(';'))
OpenPOWER on IntegriCloud