summaryrefslogtreecommitdiff
path: root/gl/tests
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2010-11-15 09:36:16 +0000
committerPádraig Brady <P@draigBrady.com>2010-11-15 14:56:24 +0000
commitb19733bb42e1897afd93f40aeca83e76013f7075 (patch)
tree6c4fbbbea10093c108b979296cf62eac142da974 /gl/tests
parentf70c7b785b93dd436788d34827b209453157a6f2 (diff)
downloadcoreutils-b19733bb42e1897afd93f40aeca83e76013f7075.tar.xz
maint: add a missed fadvise-tests module
* gl/modules/fadvise-tests: Add the module previously missed in commit 63b5e816, 2010-07-14, "fadvise: new module ...". * gl/tests/test-fadvise.c: Add a comment as to why we don't check return values.
Diffstat (limited to 'gl/tests')
-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)
{