mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
ctdb-tests: Allow fake_ctdbd and tool to be run under valgrind in tool tests
Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
parent
779a8d8dc3
commit
752c70b021
@ -19,7 +19,7 @@ define_test ()
|
|||||||
ctdb.*)
|
ctdb.*)
|
||||||
_cmd="${_f#ctdb.}"
|
_cmd="${_f#ctdb.}"
|
||||||
_cmd="${_cmd%.*}" # Strip test number
|
_cmd="${_cmd%.*}" # Strip test number
|
||||||
export CTDB="ctdb --socket $ctdbd_socket"
|
export CTDB="$VALGRIND ctdb --socket $ctdbd_socket"
|
||||||
export CTDB_DEBUGLEVEL=3
|
export CTDB_DEBUGLEVEL=3
|
||||||
test_args="$_cmd"
|
test_args="$_cmd"
|
||||||
;;
|
;;
|
||||||
@ -46,7 +46,7 @@ setup_ctdbd ()
|
|||||||
{
|
{
|
||||||
debug "Setting up fake ctdbd"
|
debug "Setting up fake ctdbd"
|
||||||
|
|
||||||
fake_ctdbd -s "$ctdbd_socket" -p "$ctdbd_pidfile"
|
$VALGRIND fake_ctdbd -s "$ctdbd_socket" -p "$ctdbd_pidfile"
|
||||||
test_cleanup cleanup_ctdbd
|
test_cleanup cleanup_ctdbd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user