mirror of
https://sourceware.org/git/glibc.git
synced 2026-10-24 01:33:52 +03:00
Fix Linux fallocate tests for EOPNOTSUPP
The fallocate syscall might fail on Linux due missing support from
underlying filesystem (for instance some NFS versions). This patch
adds this check for fallocate tests. It also moves tst-fallocate{64}
to 'io' folder (since it is on fallocate{64} is built).
Checked on x86_64.
* sysdeps/unix/sysv/linux/Makefile [$(subdir) = math] (tests): Move
tst-fallocate{64}.
* sysdeps/unix/sysv/linux/tst-fallocate-common.c: Check for EOPNOTSUPP
on syscall return.
This commit is contained in:
@@ -43,7 +43,7 @@ sysdep_headers += sys/mount.h sys/acct.h sys/sysctl.h \
|
||||
bits/mman-linux.h
|
||||
|
||||
tests += tst-clone tst-clone2 tst-fanotify tst-personality tst-quota \
|
||||
tst-fallocate tst-fallocate64 tst-sync_file_range
|
||||
tst-sync_file_range
|
||||
|
||||
# Generate the list of SYS_* macros for the system calls (__NR_* macros).
|
||||
|
||||
@@ -173,6 +173,8 @@ ifeq ($(subdir),io)
|
||||
sysdep_routines += xstatconv internal_statvfs internal_statvfs64 \
|
||||
sync_file_range fallocate fallocate64
|
||||
sysdep_headers += bits/fcntl-linux.h
|
||||
|
||||
tests += tst-fallocate tst-fallocate64
|
||||
endif
|
||||
|
||||
ifeq ($(subdir),elf)
|
||||
|
||||
Reference in New Issue
Block a user