summaryrefslogtreecommitdiff
path: root/tests/auto/qserialport/tst_qserialport.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qserialport/tst_qserialport.cpp')
-rw-r--r--tests/auto/qserialport/tst_qserialport.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/qserialport/tst_qserialport.cpp b/tests/auto/qserialport/tst_qserialport.cpp
index 7d13732..990f6ee 100644
--- a/tests/auto/qserialport/tst_qserialport.cpp
+++ b/tests/auto/qserialport/tst_qserialport.cpp
@@ -251,7 +251,7 @@ void tst_QSerialPort::openNotExisting()
void tst_QSerialPort::handleBytesWrittenAndExitLoopSlot(qint64 bytesWritten)
{
- QCOMPARE(bytesWritten, (alphabetArray.size() + newlineArray.size()));
+ QCOMPARE(bytesWritten, qint64(alphabetArray.size() + newlineArray.size()));
exitLoop();
}
@@ -267,7 +267,7 @@ void tst_QSerialPort::flush()
QVERIFY(serialPort.open(QIODevice::WriteOnly));
serialPort.write(alphabetArray + newlineArray);
- QCOMPARE(serialPort.bytesToWrite(), (alphabetArray.size() + newlineArray.size()));
+ QCOMPARE(serialPort.bytesToWrite(), qint64(alphabetArray.size() + newlineArray.size()));
serialPort.flush();
QCOMPARE(serialPort.bytesToWrite(), qint64(0));
enterLoop(1);
@@ -298,11 +298,11 @@ void tst_QSerialPort::doubleFlush()
QVERIFY(serialPort.open(QIODevice::WriteOnly));
serialPort.write(alphabetArray);
- QCOMPARE(serialPort.bytesToWrite(), alphabetArray.size());
+ QCOMPARE(serialPort.bytesToWrite(), qint64(alphabetArray.size()));
serialPort.flush();
QCOMPARE(serialPort.bytesToWrite(), qint64(0));
serialPort.write(newlineArray);
- QCOMPARE(serialPort.bytesToWrite(), newlineArray.size());
+ QCOMPARE(serialPort.bytesToWrite(), qint64(newlineArray.size()));
serialPort.flush();
QCOMPARE(serialPort.bytesToWrite(), qint64(0));