diff options
author | Denis Shienkov <denis.shienkov@gmail.com> | 2014-09-28 00:00:22 +0400 |
---|---|---|
committer | Denis Shienkov <denis.shienkov@gmail.com> | 2014-09-28 20:26:25 +0200 |
commit | 3a967ff35979196c8c97a066b5aa68c1b5d13494 (patch) | |
tree | ca0e1a10495382f436f17dbecba11d2183f4b0f1 /tests | |
parent | 54a07b350895b4fdd4143ac2ce9d2d99d86bba42 (diff) | |
download | qtserialport-3a967ff35979196c8c97a066b5aa68c1b5d13494.tar.gz |
Fix typo in twoStageSynchronousLoopback test
Commit f1761c1236edce428278f7a9e8aa1091097eaa57 introduce a typo
for receiverPort and senderPort variables, that lead to failure of test.
Change-Id: I18ecad78bb11d7bb218a674c3c3bf9c863a2b33c
Reviewed-by: Samuel Gaist <samuel.gaist@edeltech.ch>
Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qserialport/tst_qserialport.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qserialport/tst_qserialport.cpp b/tests/auto/qserialport/tst_qserialport.cpp index 9feccd4..2b8de92 100644 --- a/tests/auto/qserialport/tst_qserialport.cpp +++ b/tests/auto/qserialport/tst_qserialport.cpp @@ -476,7 +476,7 @@ void tst_QSerialPort::twoStageSynchronousLoopback() receiverPort.waitForBytesWritten(waitMsecs); QTest::qSleep(waitMsecs); senderPort.waitForReadyRead(waitMsecs); - QCOMPARE(receiverPort.bytesAvailable(), qint64(newlineArray.size())); + QCOMPARE(senderPort.bytesAvailable(), qint64(newlineArray.size())); QCOMPARE(senderPort.readAll(), newlineArray); // second stage @@ -489,7 +489,7 @@ void tst_QSerialPort::twoStageSynchronousLoopback() receiverPort.waitForBytesWritten(waitMsecs); QTest::qSleep(waitMsecs); senderPort.waitForReadyRead(waitMsecs); - QCOMPARE(receiverPort.bytesAvailable(), qint64(newlineArray.size())); + QCOMPARE(senderPort.bytesAvailable(), qint64(newlineArray.size())); QCOMPARE(senderPort.readAll(), newlineArray); } |