forked from Imagelibrary/rtems
@@ -62,10 +62,17 @@ static void test(void)
|
|||||||
rtems_test_assert(rv == 0);
|
rtems_test_assert(rv == 0);
|
||||||
rtems_test_assert(errno == 0);
|
rtems_test_assert(errno == 0);
|
||||||
|
|
||||||
errno = 0;
|
if (sizeof(off_t) == sizeof(long)) {
|
||||||
actual_long_off = ftell(file);
|
errno = 0;
|
||||||
rtems_test_assert(actual_long_off == -1L);
|
actual_long_off = ftell(file);
|
||||||
rtems_test_assert(errno == EOVERFLOW);
|
rtems_test_assert(actual_long_off == off);
|
||||||
|
rtems_test_assert(errno == 0);
|
||||||
|
} else {
|
||||||
|
errno = 0;
|
||||||
|
actual_long_off = ftell(file);
|
||||||
|
rtems_test_assert(actual_long_off == -1L);
|
||||||
|
rtems_test_assert(errno == EOVERFLOW);
|
||||||
|
}
|
||||||
|
|
||||||
errno = 0;
|
errno = 0;
|
||||||
actual_off = ftello(file);
|
actual_off = ftello(file);
|
||||||
|
|||||||
Reference in New Issue
Block a user