Fix more test-errno issues
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 28 Mar 2017 19:44:19 +0000 (16:44 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 30 Mar 2017 21:23:43 +0000 (18:23 -0300)
commit2183741fdcc0377e3a4f917194799e576537967f
tree394f1c95f8a48af5ed3555542e198b5dc5c659a1
parent10614335d1237704a5496758185ad7eb4bd65287
Fix more test-errno issues

This patch fixes some test-errno-linux unexpected returns for the
tested syscalls on some older kernels (I saw it on a Linux 3.8 on
armv7l).  Basically:

   - inotify_add_watch: Linux v3.8 (676a0675c) removed the test to
     check at least one valid bit in flags (to return EINVAL).  It
     was later added back in v3.9 (04df32fa1).

   - quotactl: returns ENOSYS for kernels not configured with
     CONFIG_QUOTA.

Checked on x86_64-linux-gnu and armv7l-linux-gnueabihf.

* sysdeps/unix/sysv/linux/test-errno-linux.c (do_test): Handle
non expected inotify_add_watch and quotactl return.
ChangeLog
sysdeps/unix/sysv/linux/test-errno-linux.c