mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 02:42:55 +00:00
set the byte order to big endian when testing with big endian data in QDataStream test cases
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
e096f539fe
commit
8a7d49c5d6
1 changed files with 3 additions and 0 deletions
|
@ -2146,6 +2146,7 @@ void tst_QDataStream::skipRawData()
|
|||
\
|
||||
{ \
|
||||
QDataStream stream(&bigEndianData, QIODevice::ReadOnly); \
|
||||
stream.setByteOrder(QDataStream::BigEndian); \
|
||||
T i; \
|
||||
stream >> i; \
|
||||
QCOMPARE((int) stream.status(), expectedStatus); \
|
||||
|
@ -2153,6 +2154,7 @@ void tst_QDataStream::skipRawData()
|
|||
} \
|
||||
{ \
|
||||
QDataStream stream(&bigEndianData, QIODevice::ReadOnly); \
|
||||
stream.setByteOrder(QDataStream::BigEndian); \
|
||||
UT i; \
|
||||
stream >> i; \
|
||||
QCOMPARE((int) stream.status(), expectedStatus); \
|
||||
|
@ -2188,6 +2190,7 @@ void tst_QDataStream::skipRawData()
|
|||
\
|
||||
{ \
|
||||
QDataStream stream(&bigEndianData, QIODevice::ReadOnly); \
|
||||
stream.setByteOrder(QDataStream::BigEndian); \
|
||||
stream.setFloatingPointPrecision(prec); \
|
||||
T i; \
|
||||
stream >> i; \
|
||||
|
|
Loading…
Add table
Reference in a new issue