From 7f8d17b6fe903e0603c8e8fea9bdd7eb7fe66f34 Mon Sep 17 00:00:00 2001 From: Denis Shienkov Date: Fri, 21 Nov 2014 16:01:30 +0300 Subject: Fix QSPI::isNull() The method QSPI::isNull() should return false when QSPI is empty. Tested on Winsows 8 and Linux with on-board, virtual and USB serial ports using Qt5 and then Qt4. Task-number: QTBUG-41262 Change-Id: Ic9e0afc5549311283aef7ec2ed841f5e418b7edf Reviewed-by: Sergey Belyashov --- tests/auto/qserialportinfo/qserialportinfo.pro | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/auto/qserialportinfo/qserialportinfo.pro (limited to 'tests/auto/qserialportinfo/qserialportinfo.pro') diff --git a/tests/auto/qserialportinfo/qserialportinfo.pro b/tests/auto/qserialportinfo/qserialportinfo.pro new file mode 100644 index 0000000..b3e49bd --- /dev/null +++ b/tests/auto/qserialportinfo/qserialportinfo.pro @@ -0,0 +1,11 @@ +QT = core testlib +TARGET = tst_qserialportinfo +#CONFIG += testcase + +greaterThan(QT_MAJOR_VERSION, 4) { + QT += serialport +} else { + include($$QTSERIALPORT_PROJECT_ROOT/src/serialport/qt4support/serialport.prf) +} + +SOURCES = tst_qserialportinfo.cpp -- cgit v1.2.1