]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: fix false failure with valgrind and reflink
authorPádraig Brady <P@draigBrady.com>
Fri, 26 Jun 2020 18:57:09 +0000 (19:57 +0100)
committerPádraig Brady <P@draigBrady.com>
Fri, 26 Jun 2020 18:57:09 +0000 (19:57 +0100)
* tests/cp/fiemap-FMR.sh: Avoid FICLONE ioctl,
which would avoid the point of the test (fiemap testing).
Also it avoids a valgrind bug with this ioctl:
https://bugs.kde.org/show_bug.cgi?id=397605

tests/cp/fiemap-FMR.sh

index 29be5ee07c61ecc43b64bef58b9550f2743bc071..42b244f30e139958b7b53c935c5a133eaab3fcc5 100755 (executable)
@@ -24,7 +24,7 @@ require_perl_
 
 $PERL -e 'for (1..600) { sysseek (*STDOUT, 4096, 1)' \
   -e '&& syswrite (*STDOUT, "a" x 1024) or die "$!"}' > j || fail=1
-valgrind --quiet --error-exitcode=3 cp j j2 || fail=1
+valgrind --quiet --error-exitcode=3 cp --reflink=never j j2 || fail=1
 cmp j j2 || fail=1
 
 Exit $fail