diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2021-01-25 14:12:05 -0500 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2021-01-27 08:26:20 -0500 |
commit | e4137ae3eca0c73e8c19ea84d9a203ddb065f0d8 (patch) | |
tree | dd0f36ed09f5d9978fc5a71dae4fa97c70e1358e /docs/markdown/snippets | |
parent | e6ab364a69f2e5a8b0692da926af1e19f4f28734 (diff) | |
download | meson-e4137ae3eca0c73e8c19ea84d9a203ddb065f0d8.zip meson-e4137ae3eca0c73e8c19ea84d9a203ddb065f0d8.tar.gz meson-e4137ae3eca0c73e8c19ea84d9a203ddb065f0d8.tar.bz2 |
test: Make timeout <= 0 infinite duraction
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r-- | docs/markdown/snippets/test_timeout.md | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/markdown/snippets/test_timeout.md b/docs/markdown/snippets/test_timeout.md new file mode 100644 index 0000000..e436d2e --- /dev/null +++ b/docs/markdown/snippets/test_timeout.md @@ -0,0 +1,9 @@ +## `test()` timeout and timeout_multiplier value <= 0 + +`test(..., timeout: 0)`, or negative value, used to abort the test immediately +but now instead allow infinite duration. Note that omitting the `timeout` +keyword argument still defaults to 30s timeout. + +Likewise, `add_test_setup(..., timeout_multiplier: 0)`, or +`meson test --timeout-multiplier 0`, or negative value, disable tests timeout. + |