diff options
author | Jim Meyering <meyering@redhat.com> | 2012-08-18 07:25:28 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2012-08-18 07:39:49 +0200 |
commit | b8104e47ca23cb7ba57e0c06451df093e6b02593 (patch) | |
tree | 8c454f14273a8873b5abe5e0ff9ed13675657d15 /tests/init.cfg | |
parent | 574b7c7dbec8821d03a462796968847783d07c29 (diff) | |
download | coreutils-b8104e47ca23cb7ba57e0c06451df093e6b02593.tar.xz |
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.
Diffstat (limited to 'tests/init.cfg')
-rw-r--r-- | tests/init.cfg | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/init.cfg b/tests/init.cfg index 4ff5ad4d5..f223f13a5 100644 --- a/tests/init.cfg +++ b/tests/init.cfg @@ -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 . \ |