aboutsummaryrefslogtreecommitdiff
path: root/tests/unistd/io.c
diff options
context:
space:
mode:
authorMichael J. Bishop <mbtyke@gmail.com>2013-09-18 15:43:17 -0400
committerMichael J. Bishop <mbtyke@gmail.com>2013-09-18 15:44:58 -0400
commitee9d51029780b6542f3b27ab7071a90e8b9a2577 (patch)
tree9460da161f22fbb4de4cbbb92373fc41868b46c7 /tests/unistd/io.c
parent2ed2fb5df392251a0957543b920272b9b2ae7908 (diff)
Removed old test case and put a test case in a more appropriate area.
tests/unistd/io.* --- Revert "Added to the test_files test to ensure the pread() functionality." This reverts commit 2ed2fb5df392251a0957543b920272b9b2ae7908.
Diffstat (limited to 'tests/unistd/io.c')
-rw-r--r--tests/unistd/io.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/unistd/io.c b/tests/unistd/io.c
index 0ff5f4fb..6bf22593 100644
--- a/tests/unistd/io.c
+++ b/tests/unistd/io.c
@@ -104,6 +104,12 @@ int main() {
printf("errno: %d\n\n", errno);
errno = 0;
+ printf("pread past end of file: %d\n", pread(f, readBuffer, sizeof readBuffer, 99999999999));
+ printf("data: %s\n", readBuffer);
+ memset(readBuffer, 0, sizeof readBuffer);
+ printf("errno: %d\n\n", errno);
+ errno = 0;
+
printf("seek: %d\n", lseek(f, 3, SEEK_SET));
printf("errno: %d\n\n", errno);
printf("partial read from file: %d\n", read(f, readBuffer, 3));