commit | 55147ada3c93bda85b2d35f72ba4fde1a7745ff6 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Tue Apr 05 11:06:02 2016 -0700 |
committer | Elliott Hughes <enh@google.com> | Tue Apr 05 11:06:02 2016 -0700 |
tree | 9da39bd68ce4cc4bbd9f7903bb4fa7e721c388ee | |
parent | c9291e1bb51a9bf9fb64e382a094dc205de4287d [diff] [blame] |
Add missing prototype for readahead in <fcntl.h>. Change-Id: Icfe85e9cf95c657b495c4e9cd10dec50b0b8f6db
diff --git a/tests/fcntl_test.cpp b/tests/fcntl_test.cpp index 3fd0a8c..212cce6 100644 --- a/tests/fcntl_test.cpp +++ b/tests/fcntl_test.cpp
@@ -237,3 +237,10 @@ ASSERT_STREQ(expected, buf1); ASSERT_STREQ(expected, buf2); } + +TEST(fcntl, readahead) { + // Just check that the function is available. + errno = 0; + ASSERT_EQ(-1, readahead(-1, 0, 123)); + ASSERT_EQ(EBADF, errno); +}