mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
tests: avoid a false failure on HPUX systems
* tests/dd/nocache: Relax the test, as the system may return various errors from posix_fadvise(). HPUX 11.31 returns ENOTTY for example. Reported by Bruno Haible
This commit is contained in:
1 parent
7c77c93dc5
commit
e4feb5c03b
1 file changed
+6
-6
+6
-6
@@ -36,12 +36,12 @@ done
|
||||
|
||||
# Advise to drop cache for whole file
|
||||
if ! dd if=ifile iflag=nocache count=0 2>err; then
|
||||
if grep -F 'Operation not supported' err >/dev/null; then
|
||||
warn_ 'skipping part; this file system lacks support for posix_fadvise()'
|
||||
skip=1
|
||||
else
|
||||
fail=1
|
||||
fi
|
||||
# We could check for 'Operation not supported' in err here,
|
||||
# but that was seen to be brittle. HPUX returns ENOTTY for example.
|
||||
# So assume that if this basic operation fails, it's due to lack
|
||||
# of support by the system.
|
||||
warn_ 'skipping part; this file system lacks support for posix_fadvise()'
|
||||
skip=1
|
||||
fi
|
||||
|
||||
if test "$skip" != 1; then
|
||||
|
||||
Reference in new issue
Block a user