From: Pádraig Brady
Date: Fri, 26 Jun 2020 18:57:09 +0000 (+0100) Subject: tests: fix false failure with valgrind and reflink X-Git-Tag: v9.0~226 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=947c553ff92b6edbc6f5a9f43172ebf7e58a1d21;p=thirdparty%2Fcoreutils.git tests: fix false failure with valgrind and reflink * 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 --- diff --git a/tests/cp/fiemap-FMR.sh b/tests/cp/fiemap-FMR.sh index 29be5ee07c..42b244f30e 100755 --- a/tests/cp/fiemap-FMR.sh +++ b/tests/cp/fiemap-FMR.sh @@ -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