Changeset 2e7c3f6 in rtems


Ignore:
Timestamp:
Nov 24, 2017, 2:12:20 PM (2 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
54e7b81
Parents:
83ad1c5
git-author:
Sebastian Huber <sebastian.huber@…> (11/24/17 14:12:20)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/24/17 14:13:09)
Message:

sptests/splinkersets01: Fix 64-bit targets

Update #3082.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/splinkersets01/init.c

    r83ad1c5 r2e7c3f6  
    126126  rtems_test_assert((size_t) (e - b) == RTEMS_ARRAY_SIZE(a));
    127127  rtems_test_assert((size_t) (ce - cb) == RTEMS_ARRAY_SIZE(ca));
    128   rtems_test_assert(RTEMS_LINKER_SET_SIZE(test_rw) == sizeof(a));
    129   rtems_test_assert(RTEMS_LINKER_SET_SIZE(test_ro) == sizeof(ca));
     128  rtems_test_assert(
     129    RTEMS_LINKER_SET_SIZE(test_rw)
     130      == sizeof(const int *) * RTEMS_ARRAY_SIZE(a)
     131  );
     132  rtems_test_assert(
     133    RTEMS_LINKER_SET_SIZE(test_ro)
     134      == sizeof(const int *) * RTEMS_ARRAY_SIZE(ca)
     135  );
    130136  rtems_test_assert(
    131137    RTEMS_LINKER_SET_ITEM_COUNT(test_rw) == RTEMS_ARRAY_SIZE(a)
     
    140146  rtems_test_assert((size_t) (cei - cbi) == RTEMS_ARRAY_SIZE(ca));
    141147  rtems_test_assert((size_t) (se - sb) == 3);
    142   rtems_test_assert(RTEMS_LINKER_SET_SIZE(test_rw_i) == sizeof(a));
    143   rtems_test_assert(RTEMS_LINKER_SET_SIZE(test_ro_i) == sizeof(ca));
     148  rtems_test_assert(
     149    RTEMS_LINKER_SET_SIZE(test_rw_i)
     150      == sizeof(const int *) * RTEMS_ARRAY_SIZE(a)
     151  );
     152  rtems_test_assert(
     153    RTEMS_LINKER_SET_SIZE(test_ro_i)
     154      == sizeof(const int *) * RTEMS_ARRAY_SIZE(ca)
     155  );
    144156  rtems_test_assert(RTEMS_LINKER_SET_SIZE(test_ro_s) == 3 * sizeof(int *));
    145157  rtems_test_assert(
Note: See TracChangeset for help on using the changeset viewer.