summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLaszlo Papp <lpapp@kde.org>2013-07-27 16:57:08 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-02 21:05:07 +0100
commit959775c41683033adbd99faab7e3d70e0009c143 (patch)
tree4d6586946d44617271dbbc56840d45196e855dec /tests
parent5a2314414fc89c6ef44521f6d13899045b6da7af (diff)
downloadqtserialport-959775c41683033adbd99faab7e3d70e0009c143.tar.gz
Add API for querying the serial number
Thanks go to Massimo Callegari for the initial patch and the request to remind us again. Thanks also go to Denis and Sergey for working on the windows serial number parser. Task-number: QTBUG-31981 Change-Id: I60d882280f481eb99d275e0a9c81da50292b1c61 Reviewed-by: Massimo Callegari <massimocallegari@yahoo.it> Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/manual/qserialportinfo/tst_qserialportinfo.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/manual/qserialportinfo/tst_qserialportinfo.cpp b/tests/manual/qserialportinfo/tst_qserialportinfo.cpp
index df7ea43..c73aa00 100644
--- a/tests/manual/qserialportinfo/tst_qserialportinfo.cpp
+++ b/tests/manual/qserialportinfo/tst_qserialportinfo.cpp
@@ -1,6 +1,7 @@
/****************************************************************************
**
** Copyright (C) 2012 Denis Shienkov <denis.shienkov@gmail.com>
+** Copyright (C) 2013 Laszlo Papp <lpapp@kde.org>
** Contact: http://www.qt-project.org/legal
**
** This file is part of the QtSerialPort module of the Qt Toolkit.
@@ -78,6 +79,7 @@ void tst_QSerialPortInfo::assignment()
QCOMPARE(otherSerialPortInfo.systemLocation(), serialPortInfo.systemLocation());
QCOMPARE(otherSerialPortInfo.description(), serialPortInfo.description());
QCOMPARE(otherSerialPortInfo.manufacturer(), serialPortInfo.manufacturer());
+ QCOMPARE(otherSerialPortInfo.serialNumber(), serialPortInfo.serialNumber());
QCOMPARE(otherSerialPortInfo.vendorIdentifier(), serialPortInfo.vendorIdentifier());
QCOMPARE(otherSerialPortInfo.productIdentifier(), serialPortInfo.productIdentifier());
}