1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-26 21:57:41 +03:00

ctdb-tests: New function unit_test_notrace()

Avoids valgrind and such, so a function can be passed.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
Martin Schwenke 2016-12-14 07:18:57 +11:00 committed by Amitay Isaacs
parent 8d9b41d427
commit 27cb5d63d5

View File

@ -209,6 +209,16 @@ script_test ()
result_check || exit $?
}
# Simple test harness for running tests without tracing
unit_test_notrace ()
{
test_header "$@"
_out=$("$@" 2>&1)
result_check || exit $?
}
test_cleanup_hooks=""
test_cleanup ()