]> git.ipfire.org Git - thirdparty/util-linux.git/commit
tests: Use proper word splitting when executing tests
authorFilipe Brandenburger <filbranden@google.com>
Wed, 10 Aug 2016 20:17:12 +0000 (13:17 -0700)
committerFilipe Brandenburger <filbranden@google.com>
Wed, 10 Aug 2016 20:37:43 +0000 (13:37 -0700)
commit88a5f90e874cac53f5d24aed6542d4867be10e2d
treed7cbfbea01890ca0ba1c32e8ae904dabe46221bc
parent47bd898e91043c5c505f8d28bb7d5377f10ae0db
tests: Use proper word splitting when executing tests

Use the shell special variable "$@" instead of the inferior $* to
execute the test command in ts_valgrind.  The expansion of "$@" respects
proper word splitting and makes it possible to pass the command empty
arguments.  It might also prevent surprises with quoting in corner
cases.

Tested that `make check` passes.

Valgrind run with `make check TS_OPTS='--nonroot --memcheck'` passes.

Signed-off-by: Filipe Brandenburger <filbranden@google.com>
tests/functions.sh