mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
tests: avoid false positive valgrind failures
* init.cfg (require_valgrind_): Check the `true` program, which will check more valgrind failure cases as now detailed in the function comments.
This commit is contained in:
1 parent
8220a17c93
commit
dd44ccef0d
1 file changed
+6
-2
@@ -159,10 +159,14 @@ require_strace_()
|
||||
fi
|
||||
}
|
||||
|
||||
# Skip the current test if valgrind doesn't work.
|
||||
# Skip the current test if valgrind doesn't work,
|
||||
# which could happen if not installed,
|
||||
# or hasn't support for the built architecture,
|
||||
# or hasn't appropriate error suppressions installed etc.
|
||||
require_valgrind_()
|
||||
{
|
||||
valgrind --help >/dev/null || skip_ "requires valgrind"
|
||||
valgrind --error-exitcode=1 true 2>/dev/null ||
|
||||
skip_ "requires a working valgrind"
|
||||
}
|
||||
|
||||
require_setfacl_()
|
||||
|
||||
Reference in new issue
Block a user