mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
tests: wrap the valgrind-requiring assertion in a function
* tests/init.cfg (require_valgrind_): New function... * tests/misc/sort-stale-thread-mem: ...extracted from here.
This commit is contained in:
1 parent
574b7c7dbe
commit
b8104e47ca
2 files changed
+7
-1
No files matched your search
@@ -160,6 +160,12 @@ require_strace_()
|
||||
fi
|
||||
}
|
||||
|
||||
# Skip the current test if valgrind doesn't work.
|
||||
require_valgrind_()
|
||||
{
|
||||
valgrind --help >/dev/null || skip_ "requires valgrind"
|
||||
}
|
||||
|
||||
require_setfacl_()
|
||||
{
|
||||
setfacl -m user::rwx . \
|
||||
|
||||
@@ -22,8 +22,8 @@
|
||||
print_ver_ sort
|
||||
|
||||
very_expensive_
|
||||
require_valgrind_
|
||||
|
||||
valgrind --help >/dev/null || skip_ "requires valgrind"
|
||||
grep '^#define HAVE_PTHREAD_T 1' "$CONFIG_HEADER" > /dev/null ||
|
||||
skip_ 'requires pthreads'
|
||||
|
||||
|
||||
Reference in new issue
Block a user