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:
parent
8d9b41d427
commit
27cb5d63d5
@ -209,6 +209,16 @@ script_test ()
|
|||||||
result_check || exit $?
|
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_hooks=""
|
||||||
|
|
||||||
test_cleanup ()
|
test_cleanup ()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user