1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
samba-mirror/ctdb/tests/UNIT
Martin Schwenke 667265b685 ctdb-tests: Limit red-black tree test to 5s of random inserts
rb_test_001.sh runs for 60s even though rb_tree.c is almost never
modified.  This generally extends test time by an unreasonable amount
of time.

Add an optional timeout (in seconds) argument to rb_test, defaulting
to 60, and pass 5 from rb_test_001.sh.  If anyone ever significantly
updates rb_tree.c then they can run rb_test directly with its default
60s timeout... or for as long as they like.

Reported-by: Volker Lendecke <vl@samba.org>
Signed-off-by: Martin Schwenke <mschwenke@ddn.com>
Reviewed-by: Volker Lendecke <vl@samba.org>

Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Thu Feb 29 13:20:40 UTC 2024 on atb-devel-224
2024-02-29 13:20:40 +00:00
..
cunit ctdb-tests: Limit red-black tree test to 5s of random inserts 2024-02-29 13:20:40 +00:00
eventd ctdb-tools: Fix CID 1539212 - signed/unsigned issue 2023-08-07 08:43:39 +00:00
eventscripts ctdb-scripts: Update detect_init_style to use /etc/os-release 2023-10-30 09:19:11 +00:00
onnode ctdb-tests: Prefix remaining environment variables with CTDB_ 2019-10-22 19:39:41 +00:00
shellcheck ctdb-tests: Run ShellCheck on event-script unit test support scripts 2023-07-05 12:16:56 +00:00
takeover ctdb: Add "home_nodes" file to deterministic IP allocation 2023-10-10 14:17:19 +00:00
takeover_helper ctdb-tests: Prefix remaining environment variables with CTDB_ 2019-10-22 19:39:41 +00:00
tool ctdb-tests: Add new tool unit tests to cover UNKNOWN state 2022-06-28 10:16:59 +00:00