From ee9d51029780b6542f3b27ab7071a90e8b9a2577 Mon Sep 17 00:00:00 2001 From: "Michael J. Bishop" Date: Wed, 18 Sep 2013 15:43:17 -0400 Subject: 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. --- tests/files.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'tests/files.cpp') diff --git a/tests/files.cpp b/tests/files.cpp index 5d158ba9..176cdb62 100644 --- a/tests/files.cpp +++ b/tests/files.cpp @@ -2,7 +2,6 @@ #include #include #include -#include int main() { @@ -62,14 +61,7 @@ int main() char data2[10]; FILE *inf = fopen("go.out", "rb"); - - // make sure pread returns 0 if we read starting at the end (or past the end) of the file - int num = pread(fileno(inf), data2, 10, 5); - assert(num == 0); - num = pread(fileno(inf), data2, 10, sizeof(data)*8); - assert(num == 0); - - num = fread(data2, 1, 10, inf); + int num = fread(data2, 1, 10, inf); fclose(inf); printf("%d : %d,%d,%d,%d,%d\n", num, data2[0], data2[1], data2[2], data2[3], data2[4]); -- cgit v1.2.3-70-g09d2