diff options
author | Dmitry Shachnev <mitya57@gmail.com> | 2016-06-16 17:38:44 +0300 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2016-06-20 14:33:55 +0000 |
commit | 4862fea330cffdc4f9fb2972e76287487444e8b4 (patch) | |
tree | 5686cfedbac9cc2162f4638414cde6c018d0f744 /src/core/resources/qhandle_p.h | |
parent | d44aa5a1b285100aa1b656ccf34b69f154b965a3 (diff) |
Make QHandle tests pass on big endian systems
QHandle uses an union internally so the value of handle is composed of
values of three other integer fields, as defined in Data structure.
The value is different on big endian and little endian systems. This
commit introduces a new GET_EXPECTED_HANDLE macro which determines what
the handle should be equal to based on values of those integer fields
and the system endianness. Note that the values of those fields are
verified too in the tests.
Change-Id: I1f1e37a7469995879ff94e8fc2d6b974c1d4359b
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/core/resources/qhandle_p.h')
0 files changed, 0 insertions, 0 deletions