diff options
author | Denis Shienkov <scapig2@yandex.ru> | 2011-10-22 22:09:09 +0400 |
---|---|---|
committer | Denis Shienkov <scapig2@yandex.ru> | 2011-10-22 22:09:09 +0400 |
commit | cfffbde74c0cf72f2c91d8a60c2638c96c6d3e57 (patch) | |
tree | e010241d311dc24acde76237ab6d004866d80dda /tests | |
parent | 74fd89965ad84590cc00c2ee812fbb6c4671de3c (diff) | |
download | qtserialport-cfffbde74c0cf72f2c91d8a60c2638c96c6d3e57.tar.gz |
/tests/guidevtest: In the test "Port Info" added output information about the supported speeds.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/guidevtest/unittestinfo.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/tests/guidevtest/unittestinfo.cpp b/tests/guidevtest/unittestinfo.cpp index 03bb462..851a492 100644 --- a/tests/guidevtest/unittestinfo.cpp +++ b/tests/guidevtest/unittestinfo.cpp @@ -30,7 +30,14 @@ void UnitTestInfo::start() " location : %3\n" " description : %4\n" " valid : %5\n" - " busy : %6\n")); + " busy : %6\n" + " rates : %7\n")); + + QString r; + foreach (qint32 rate, inf.standardRates()) { + r.append(QString::number(rate)); + r.append(';'); + } body = body .arg(it++) @@ -38,7 +45,8 @@ void UnitTestInfo::start() .arg(inf.systemLocation()) .arg(inf.description()) .arg(inf.isValid()) - .arg(inf.isBusy()); + .arg(inf.isBusy()) + .arg(r); m_logger->addContent(body); } |