Fix Linux fallocate tests for EOPNOTSUPP
commita9bfffe59333fdc6785f3cc903188d1ead36539d
authorAdhemerval Zanella <adhemerval.zanella@linaro.com>
Mon, 17 Oct 2016 18:59:17 +0000 (17 16:59 -0200)
committerAdhemerval Zanella <adhemerval.zanella@linaro.com>
Tue, 18 Oct 2016 10:56:22 +0000 (18 08:56 -0200)
tree16f9f81101469354fbc868fd199af2c962a3005b
parentb3d17c1cf29ac8cd6b2fcd1db7d824e4af9ea505
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.
ChangeLog
sysdeps/unix/sysv/linux/Makefile
sysdeps/unix/sysv/linux/tst-fallocate-common.c