mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
tests: initialize fail=0 to avoid "unary operator expected" errors
With an uninitialized variable 'fail', the unquoted use like test $fail = 1 lead to the shell error "unary operator expected". The uninitialized 'fail' variable was a side effect of https://git.sv.gnu.org/cgit/gnulib.git/commit/?id=e91c0d4f9 which was pulled into coreutils-v8.26 with https://git.sv.gnu.org/cgit/coreutils.git/commit/?id=ef9650170 Coreutils test code relied and relies on 'fail' to be initialized, so initialize that variable here. * tests/local.mk (TESTS_ENVIRONMENT): Initialize fail=0.
This commit is contained in:
1 parent
cb1f253e63
commit
5fb8eb091f
1 file changed
+1
@@ -66,6 +66,7 @@ TESTS_ENVIRONMENT = \
|
||||
abs_top_srcdir='$(abs_top_srcdir)' \
|
||||
abs_srcdir='$(abs_srcdir)' \
|
||||
built_programs='$(built_programs) $(single_binary_progs)' \
|
||||
fail=0 \
|
||||
host_os=$(host_os) \
|
||||
host_triplet='$(host_triplet)' \
|
||||
srcdir='$(srcdir)' \
|
||||
|
||||
Reference in new issue
Block a user