summaryrefslogtreecommitdiff
path: root/gl/tests/test-fadvise.c
diff options
context:
space:
mode:
Diffstat (limited to 'gl/tests/test-fadvise.c')
-rw-r--r--gl/tests/test-fadvise.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gl/tests/test-fadvise.c b/gl/tests/test-fadvise.c
index 10b448f37..cd2f8bf3d 100644
--- a/gl/tests/test-fadvise.c
+++ b/gl/tests/test-fadvise.c
@@ -21,6 +21,13 @@
#include "fadvise.h"
+/* We ignore any errors as these hints are only advisory.
+ * There is the chance one can pass invalid ADVICE, which will
+ * not be indicated, but given the simplicity of the interface
+ * this is unlikely. Also not returning errors allows the
+ * unconditional passing of descriptors to non standard files,
+ * which will just be ignored if unsupported. */
+
int
main (void)
{