Changeset f820f22c in rtems


Ignore:
Timestamp:
Apr 8, 2015, 5:46:10 AM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
ca10004
Parents:
9baffdf
Message:

fstests/fsfseeko01: Fix for long == off_t

Close #2317.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/fstests/fsfseeko01/init.c

    r9baffdf rf820f22c  
    6363  rtems_test_assert(errno == 0);
    6464
    65   errno = 0;
    66   actual_long_off = ftell(file);
    67   rtems_test_assert(actual_long_off == -1L);
    68   rtems_test_assert(errno == EOVERFLOW);
     65  if (sizeof(off_t) == sizeof(long)) {
     66    errno = 0;
     67    actual_long_off = ftell(file);
     68    rtems_test_assert(actual_long_off == off);
     69    rtems_test_assert(errno == 0);
     70  } else {
     71    errno = 0;
     72    actual_long_off = ftell(file);
     73    rtems_test_assert(actual_long_off == -1L);
     74    rtems_test_assert(errno == EOVERFLOW);
     75  }
    6976
    7077  errno = 0;
Note: See TracChangeset for help on using the changeset viewer.