]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: fix false failure in new dd/nocache_eof test
authorPádraig Brady <P@draigBrady.com>
Sun, 10 Dec 2017 23:36:30 +0000 (15:36 -0800)
committerPádraig Brady <P@draigBrady.com>
Mon, 11 Dec 2017 01:13:18 +0000 (17:13 -0800)
* test/dd/nocache_eof.sh: Also handle fadvise64_64 which is
used on 32 bit x86.  Note strace internally maps fadvise64_64
to {arm,xtensa}_fadvise64_64.

tests/dd/nocache_eof.sh

index b99b4a35288944375a5763c585d439b77a5a77d8..bb1e95456f43e17db8cfbbe9187136381a783a90 100755 (executable)
@@ -18,7 +18,7 @@
 
 . "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
 print_ver_ dd
-require_strace_ fadvise64
+require_strace_ fadvise64,fadvise64_64
 
 head -c1234567 /dev/zero > in.f || framework_failure_
 
@@ -31,7 +31,7 @@ dd if=in.f iflag=nocache count=0 ||
   skip_ 'this file system lacks support for posix_fadvise()'
 
 strace_dd() {
-  strace -o dd.strace -e fadvise64 dd status=none "$@" || fail=1
+  strace -o dd.strace -e fadvise64,fadvise64_64 dd status=none "$@" || fail=1
 }
 
 advised_to_eof() {
@@ -77,7 +77,7 @@ advised_to_eof || fail=1
 
 # Ensure sub page size offsets are handled.
 # I.e., only page aligned offsets are sent to fadvise.
-if ! strace -o dd.strace -e fadvise64 dd status=none \
+if ! strace -o dd.strace -e fadvise64,fadvise64_64 dd status=none \
  if=in.f of=out.f bs=1M oflag=direct seek=512 oflag=seek_bytes; then
   warn_ '512 byte aligned O_DIRECT is not supported on this (file) system'
   # The current file system may not support O_DIRECT,