From e4137ae3eca0c73e8c19ea84d9a203ddb065f0d8 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Mon, 25 Jan 2021 14:12:05 -0500 Subject: test: Make timeout <= 0 infinite duraction --- docs/markdown/snippets/test_timeout.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 docs/markdown/snippets/test_timeout.md (limited to 'docs/markdown/snippets') 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. + -- cgit v1.1