diff options
author | Jim Meyering <meyering@fb.com> | 2022-01-24 17:31:06 +0100 |
---|---|---|
committer | Jim Meyering <meyering@fb.com> | 2022-01-24 17:31:06 +0100 |
commit | 231f8794627e03c0748aa3ff22ac13dbd62ecee2 (patch) | |
tree | 65027c164b3dfcec6d9c35714ef87e32a46385d5 | |
parent | 25904a12fe86cb4a3cb485e312347cb227ea61bc (diff) | |
download | diffutils-231f8794627e03c0748aa3ff22ac13dbd62ecee2.tar.gz |
tests: fix false-failure on systems without valgrind
* tests/init.cfg (require_valgrind_): Use exit status of subshell,
not that of the "local" declaration.
-rw-r--r-- | tests/init.cfg | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/init.cfg b/tests/init.cfg index 7c4ef92..c75b4a7 100644 --- a/tests/init.cfg +++ b/tests/init.cfg @@ -61,7 +61,7 @@ sanitize_path_() require_valgrind_() { - local errout=$( + local errout; errout=$( LC_ALL=C valgrind --error-exitcode=1 diff /dev/null /dev/null 2>&1 ) || skip_ "requires a working valgrind" |